@hitachivantara/uikit-react-core 5.15.0 → 5.16.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.
Files changed (42) hide show
  1. package/dist/cjs/components/ActionBar/ActionBar.cjs +8 -7
  2. package/dist/cjs/components/ActionBar/ActionBar.cjs.map +1 -1
  3. package/dist/cjs/components/ActionBar/ActionBar.styles.cjs +16 -17
  4. package/dist/cjs/components/ActionBar/ActionBar.styles.cjs.map +1 -1
  5. package/dist/cjs/components/TimePicker/Placeholder.cjs +70 -0
  6. package/dist/cjs/components/TimePicker/Placeholder.cjs.map +1 -0
  7. package/dist/cjs/components/TimePicker/TimePicker.cjs +222 -0
  8. package/dist/cjs/components/TimePicker/TimePicker.cjs.map +1 -0
  9. package/dist/cjs/components/TimePicker/TimePicker.styles.cjs +53 -0
  10. package/dist/cjs/components/TimePicker/TimePicker.styles.cjs.map +1 -0
  11. package/dist/cjs/components/TimePicker/Unit/Unit.cjs +72 -0
  12. package/dist/cjs/components/TimePicker/Unit/Unit.cjs.map +1 -0
  13. package/dist/cjs/components/TimePicker/Unit/Unit.styles.cjs +56 -0
  14. package/dist/cjs/components/TimePicker/Unit/Unit.styles.cjs.map +1 -0
  15. package/dist/cjs/index.cjs +6 -2
  16. package/dist/cjs/index.cjs.map +1 -1
  17. package/dist/cjs/utils/classes.cjs +4 -3
  18. package/dist/cjs/utils/classes.cjs.map +1 -1
  19. package/dist/esm/components/ActionBar/ActionBar.js +11 -9
  20. package/dist/esm/components/ActionBar/ActionBar.js.map +1 -1
  21. package/dist/esm/components/ActionBar/ActionBar.styles.js +16 -15
  22. package/dist/esm/components/ActionBar/ActionBar.styles.js.map +1 -1
  23. package/dist/esm/components/TimePicker/Placeholder.js +70 -0
  24. package/dist/esm/components/TimePicker/Placeholder.js.map +1 -0
  25. package/dist/esm/components/TimePicker/TimePicker.js +223 -0
  26. package/dist/esm/components/TimePicker/TimePicker.js.map +1 -0
  27. package/dist/esm/components/TimePicker/TimePicker.styles.js +53 -0
  28. package/dist/esm/components/TimePicker/TimePicker.styles.js.map +1 -0
  29. package/dist/esm/components/TimePicker/Unit/Unit.js +72 -0
  30. package/dist/esm/components/TimePicker/Unit/Unit.js.map +1 -0
  31. package/dist/esm/components/TimePicker/Unit/Unit.styles.js +56 -0
  32. package/dist/esm/components/TimePicker/Unit/Unit.styles.js.map +1 -0
  33. package/dist/esm/index.js +238 -234
  34. package/dist/esm/index.js.map +1 -1
  35. package/dist/esm/utils/classes.js +4 -3
  36. package/dist/esm/utils/classes.js.map +1 -1
  37. package/dist/types/index.d.ts +134 -13
  38. package/package.json +5 -5
  39. package/dist/cjs/components/ActionBar/actionBarClasses.cjs +0 -8
  40. package/dist/cjs/components/ActionBar/actionBarClasses.cjs.map +0 -1
  41. package/dist/esm/components/ActionBar/actionBarClasses.js +0 -8
  42. package/dist/esm/components/ActionBar/actionBarClasses.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -29,7 +29,7 @@ const replace$ = (stylesObj, name) => {
29
29
  function createClasses(name, stylesObject) {
30
30
  const styles = replace$(stylesObject, name);
31
31
  const staticClasses = getClasses(Object.keys(styles), name);
32
- function useClasses(classesProp) {
32
+ function useClasses(classesProp = {}) {
33
33
  const {
34
34
  cx,
35
35
  css
@@ -37,8 +37,9 @@ function createClasses(name, stylesObject) {
37
37
  const mergeClasses = (key) => cx(`${name}-${key}`, css(styles[key]), classesProp == null ? void 0 : classesProp[key]);
38
38
  const classes = Object.fromEntries(Object.keys(styles).map((key) => [key, mergeClasses(key)]));
39
39
  return {
40
- cx,
41
- classes
40
+ classes,
41
+ css,
42
+ cx
42
43
  };
43
44
  }
44
45
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"classes.js","sources":["../../../src/utils/classes.ts"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/css\";\nimport { useCss } from \"@core/hooks/useCss\";\n\nexport type ExtractNames<\n T extends (...args: any) => { classes: Record<string, any>; cx: any }\n> = ReturnType<T>[\"classes\"];\n\nexport const getClasses = <T extends string, N extends string>(\n keys: T[],\n name: N\n) => {\n const classesObj: Record<string, string> = {};\n keys.forEach((key: string) => {\n classesObj[key] = `${name}-${key}`;\n });\n return classesObj as { [P in T]: `${N}-${P}` };\n};\n\nconst deepRenameKeys = <T extends object>(\n obj: T,\n mapFn: (key: string) => string\n): T => {\n const result: any = {};\n for (const key in obj) {\n if (Object.hasOwn(obj, key)) {\n const newKey = mapFn(key);\n const value = obj[key];\n result[newKey] =\n typeof value === \"object\" ? deepRenameKeys(value as any, mapFn) : value;\n }\n }\n return result;\n};\n\n/** Given a `stylesObj`, replaces its keys' `$myClass` with `.{name}-myClass`. */\nexport const replace$ = <T extends object>(stylesObj: T, name: string): T => {\n return deepRenameKeys(stylesObj, (key) => {\n const matches = key.match(/\\$\\w+/g);\n if (!matches?.length) return key;\n const newKey = matches.reduce(\n (acc, match) => acc.replace(match, `.${name}-${match.slice(1)}`),\n key\n );\n return newKey ?? key;\n });\n};\n\n/** Utility function to create classes for a component. */\nexport function createClasses<Name extends string, ClassName extends string>(\n /** Component name in PascalCase (ie. `HvTableCell`). */\n name: Name,\n stylesObject: Record<ClassName, CSSInterpolation>\n) {\n const styles = replace$(stylesObject, name);\n\n const staticClasses = getClasses(Object.keys(styles) as ClassName[], name);\n\n function useClasses(classesProp: Partial<Record<ClassName, string>>) {\n const { cx, css } = useCss();\n\n const mergeClasses = (key: string) =>\n cx(`${name}-${key}`, css(styles[key]), classesProp?.[key]);\n\n const classes = Object.fromEntries(\n Object.keys(styles).map((key) => [key, mergeClasses(key)])\n ) as { [P in ClassName]: string };\n\n return { cx, classes };\n }\n\n return { useClasses, staticClasses };\n}\n"],"names":["getClasses","keys","name","classesObj","forEach","key","deepRenameKeys","obj","mapFn","result","Object","hasOwn","newKey","value","replace$","stylesObj","matches","match","length","reduce","acc","replace","slice","createClasses","stylesObject","styles","staticClasses","useClasses","classesProp","cx","css","useCss","mergeClasses","classes","fromEntries","map"],"mappings":";AAOaA,MAAAA,aAAa,CACxBC,MACAC,SACG;AACH,QAAMC,aAAqC,CAAA;AACtCC,OAAAA,QAAQ,CAACC,QAAgB;AACjBA,eAAAA,GAAG,IAAK,GAAEH,QAAQG;AAAAA,EAAAA,CAC9B;AACMF,SAAAA;AACT;AAEA,MAAMG,iBAAiB,CACrBC,KACAC,UACM;AACN,QAAMC,SAAc,CAAA;AACpB,aAAWJ,OAAOE,KAAK;AACrB,QAAIG,OAAOC,OAAOJ,KAAKF,GAAG,GAAG;AACrBO,YAAAA,SAASJ,MAAMH,GAAG;AAClBQ,YAAAA,QAAQN,IAAIF,GAAG;AACdO,aAAAA,MAAM,IACX,OAAOC,UAAU,WAAWP,eAAeO,OAAcL,KAAK,IAAIK;AAAAA,IACtE;AAAA,EACF;AACOJ,SAAAA;AACT;AAGaK,MAAAA,WAAW,CAAmBC,WAAcb,SAAoB;AACpEI,SAAAA,eAAeS,WAAYV,CAAQ,QAAA;AAClCW,UAAAA,UAAUX,IAAIY,MAAM,QAAQ;AAClC,QAAI,EAACD,mCAASE;AAAeb,aAAAA;AAC7B,UAAMO,SAASI,QAAQG,OACrB,CAACC,KAAKH,UAAUG,IAAIC,QAAQJ,OAAQ,IAAGf,QAAQe,MAAMK,MAAM,CAAC,GAAG,GAC/DjB,GACF;AACA,WAAOO,UAAUP;AAAAA,EAAAA,CAClB;AACH;AAGgBkB,SAAAA,cAEdrB,MACAsB,cACA;AACMC,QAAAA,SAASX,SAASU,cAActB,IAAI;AAE1C,QAAMwB,gBAAgB1B,WAAWU,OAAOT,KAAKwB,MAAM,GAAkBvB,IAAI;AAEzE,WAASyB,WAAWC,aAAiD;AAC7D,UAAA;AAAA,MAAEC;AAAAA,MAAIC;AAAAA,QAAQC,OAAO;AAE3B,UAAMC,eAAeA,CAAC3B,QACpBwB,GAAI,GAAE3B,QAAQG,OAAOyB,IAAIL,OAAOpB,GAAG,CAAC,GAAGuB,2CAAcvB,IAAI;AAE3D,UAAM4B,UAAUvB,OAAOwB,YACrBxB,OAAOT,KAAKwB,MAAM,EAAEU,IAAK9B,CAAAA,QAAQ,CAACA,KAAK2B,aAAa3B,GAAG,CAAC,CAAC,CAC3D;AAEO,WAAA;AAAA,MAAEwB;AAAAA,MAAII;AAAAA,IAAAA;AAAAA,EACf;AAEO,SAAA;AAAA,IAAEN;AAAAA,IAAYD;AAAAA,EAAAA;AACvB;"}
1
+ {"version":3,"file":"classes.js","sources":["../../../src/utils/classes.ts"],"sourcesContent":["import { CSSInterpolation } from \"@emotion/css\";\nimport { useCss } from \"@core/hooks/useCss\";\n\nexport type ExtractNames<\n T extends (...args: any) => { classes: Record<string, any>; cx: any }\n> = ReturnType<T>[\"classes\"];\n\nexport const getClasses = <T extends string, N extends string>(\n keys: T[],\n name: N\n) => {\n const classesObj: Record<string, string> = {};\n keys.forEach((key: string) => {\n classesObj[key] = `${name}-${key}`;\n });\n return classesObj as { [P in T]: `${N}-${P}` };\n};\n\nconst deepRenameKeys = <T extends object>(\n obj: T,\n mapFn: (key: string) => string\n): T => {\n const result: any = {};\n for (const key in obj) {\n if (Object.hasOwn(obj, key)) {\n const newKey = mapFn(key);\n const value = obj[key];\n result[newKey] =\n typeof value === \"object\" ? deepRenameKeys(value as any, mapFn) : value;\n }\n }\n return result;\n};\n\n/** Given a `stylesObj`, replaces its keys' `$myClass` with `.{name}-myClass`. */\nexport const replace$ = <T extends object>(stylesObj: T, name: string): T => {\n return deepRenameKeys(stylesObj, (key) => {\n const matches = key.match(/\\$\\w+/g);\n if (!matches?.length) return key;\n const newKey = matches.reduce(\n (acc, match) => acc.replace(match, `.${name}-${match.slice(1)}`),\n key\n );\n return newKey ?? key;\n });\n};\n\n/** Utility function to create classes for a component. */\nexport function createClasses<Name extends string, ClassName extends string>(\n /** Component name in PascalCase (ie. `HvTableCell`). */\n name: Name,\n stylesObject: Record<ClassName, CSSInterpolation>\n) {\n const styles = replace$(stylesObject, name);\n\n const staticClasses = getClasses(Object.keys(styles) as ClassName[], name);\n\n function useClasses(classesProp: Partial<Record<ClassName, string>> = {}) {\n const { cx, css } = useCss();\n\n const mergeClasses = (key: string) =>\n cx(`${name}-${key}`, css(styles[key]), classesProp?.[key]);\n\n const classes = Object.fromEntries(\n Object.keys(styles).map((key) => [key, mergeClasses(key)])\n ) as { [P in ClassName]: string };\n\n return { classes, css, cx };\n }\n\n return { useClasses, staticClasses };\n}\n"],"names":["getClasses","keys","name","classesObj","forEach","key","deepRenameKeys","obj","mapFn","result","Object","hasOwn","newKey","value","replace$","stylesObj","matches","match","length","reduce","acc","replace","slice","createClasses","stylesObject","styles","staticClasses","useClasses","classesProp","cx","css","useCss","mergeClasses","classes","fromEntries","map"],"mappings":";AAOaA,MAAAA,aAAa,CACxBC,MACAC,SACG;AACH,QAAMC,aAAqC,CAAA;AACtCC,OAAAA,QAAQ,CAACC,QAAgB;AACjBA,eAAAA,GAAG,IAAK,GAAEH,QAAQG;AAAAA,EAAAA,CAC9B;AACMF,SAAAA;AACT;AAEA,MAAMG,iBAAiB,CACrBC,KACAC,UACM;AACN,QAAMC,SAAc,CAAA;AACpB,aAAWJ,OAAOE,KAAK;AACrB,QAAIG,OAAOC,OAAOJ,KAAKF,GAAG,GAAG;AACrBO,YAAAA,SAASJ,MAAMH,GAAG;AAClBQ,YAAAA,QAAQN,IAAIF,GAAG;AACdO,aAAAA,MAAM,IACX,OAAOC,UAAU,WAAWP,eAAeO,OAAcL,KAAK,IAAIK;AAAAA,IACtE;AAAA,EACF;AACOJ,SAAAA;AACT;AAGaK,MAAAA,WAAW,CAAmBC,WAAcb,SAAoB;AACpEI,SAAAA,eAAeS,WAAYV,CAAQ,QAAA;AAClCW,UAAAA,UAAUX,IAAIY,MAAM,QAAQ;AAClC,QAAI,EAACD,mCAASE;AAAeb,aAAAA;AAC7B,UAAMO,SAASI,QAAQG,OACrB,CAACC,KAAKH,UAAUG,IAAIC,QAAQJ,OAAQ,IAAGf,QAAQe,MAAMK,MAAM,CAAC,GAAG,GAC/DjB,GACF;AACA,WAAOO,UAAUP;AAAAA,EAAAA,CAClB;AACH;AAGgBkB,SAAAA,cAEdrB,MACAsB,cACA;AACMC,QAAAA,SAASX,SAASU,cAActB,IAAI;AAE1C,QAAMwB,gBAAgB1B,WAAWU,OAAOT,KAAKwB,MAAM,GAAkBvB,IAAI;AAEhEyB,WAAAA,WAAWC,cAAkD,IAAI;AAClE,UAAA;AAAA,MAAEC;AAAAA,MAAIC;AAAAA,QAAQC,OAAO;AAE3B,UAAMC,eAAeA,CAAC3B,QACpBwB,GAAI,GAAE3B,QAAQG,OAAOyB,IAAIL,OAAOpB,GAAG,CAAC,GAAGuB,2CAAcvB,IAAI;AAE3D,UAAM4B,UAAUvB,OAAOwB,YACrBxB,OAAOT,KAAKwB,MAAM,EAAEU,IAAK9B,CAAAA,QAAQ,CAACA,KAAK2B,aAAa3B,GAAG,CAAC,CAAC,CAC3D;AAEO,WAAA;AAAA,MAAE4B;AAAAA,MAASH;AAAAA,MAAKD;AAAAA,IAAAA;AAAAA,EACzB;AAEO,SAAA;AAAA,IAAEF;AAAAA,IAAYD;AAAAA,EAAAA;AACvB;"}
@@ -15,7 +15,8 @@ import { ColumnInterface } from 'react-table';
15
15
  import { ComponentProps } from 'react';
16
16
  import { ContainerProps } from '@mui/material/Container';
17
17
  import type { Context } from 'react';
18
- import { CSSInterpolation } from '@emotion/css';
18
+ import type { CSSInterpolation } from '@emotion/serialize';
19
+ import { CSSInterpolation as CSSInterpolation_2 } from '@emotion/css';
19
20
  import { CSSProperties } from 'react';
20
21
  import { DialogActionsProps } from '@mui/material/DialogActions';
21
22
  import { DialogContentProps } from '@mui/material/DialogContent';
@@ -547,10 +548,14 @@ export declare const controlsClasses: {
547
548
  /** Utility function to create classes for a component. */
548
549
  export declare function createClasses<Name extends string, ClassName extends string>(
549
550
  /** Component name in PascalCase (ie. `HvTableCell`). */
550
- name: Name, stylesObject: Record<ClassName, CSSInterpolation>): {
551
- useClasses: (classesProp: Partial<Record<ClassName, string>>) => {
552
- cx: (...args: any) => string;
551
+ name: Name, stylesObject: Record<ClassName, CSSInterpolation_2>): {
552
+ useClasses: (classesProp?: Partial<Record<ClassName, string>>) => {
553
553
  classes: { [P in ClassName]: string; };
554
+ css: {
555
+ (template: TemplateStringsArray, ...args: CSSInterpolation_2[]): string;
556
+ (...args: CSSInterpolation_2[]): string;
557
+ };
558
+ cx: (...args: any) => string;
554
559
  };
555
560
  staticClasses: { [P_1 in ClassName]: `${Name}-${P_1}`; };
556
561
  };
@@ -1040,13 +1045,11 @@ export declare interface HvAccordionProps extends HvBaseProps<HTMLDivElement, "o
1040
1045
 
1041
1046
  export declare const HvActionBar: (props: HvActionBarProps) => JSX_2.Element;
1042
1047
 
1043
- export declare interface HvActionBarClasses {
1044
- root?: string;
1045
- }
1048
+ export declare type HvActionBarClasses = ExtractNames<typeof useClasses>;
1046
1049
 
1047
1050
  export declare interface HvActionBarProps extends HvBaseProps {
1048
1051
  /** A Jss Object used to override or extend the styles applied to the component. */
1049
- classes?: HvActionBarClasses;
1052
+ classes?: Partial<HvActionBarClasses>;
1050
1053
  }
1051
1054
 
1052
1055
  declare interface HvActionContainerClasses {
@@ -1362,11 +1365,11 @@ export declare const HvBanner: ({ id, classes: classesProp, className, open, onC
1362
1365
 
1363
1366
  export declare type HvBannerActionPosition = "auto" | "inline" | "bottom-right";
1364
1367
 
1365
- export declare type HvBannerClasses = ExtractNames<typeof useClasses>;
1368
+ export declare type HvBannerClasses = ExtractNames<typeof useClasses_2>;
1366
1369
 
1367
1370
  export declare const HvBannerContent: ForwardRefExoticComponent<Omit<HvBannerContentProps, "ref"> & RefAttributes<HTMLDivElement>>;
1368
1371
 
1369
- export declare type HvBannerContentClasses = ExtractNames<typeof useClasses_2>;
1372
+ export declare type HvBannerContentClasses = ExtractNames<typeof useClasses_3>;
1370
1373
 
1371
1374
  export declare interface HvBannerContentProps extends Omit<SnackbarContentProps, "variant" | "classes" | "onClose">, HvBaseProps {
1372
1375
  /** The message to display. */
@@ -7224,6 +7227,64 @@ export declare interface HvTimeAgoProps extends HvBaseProps<HTMLElement, "childr
7224
7227
  classes?: HvTimeAgoClasses;
7225
7228
  }
7226
7229
 
7230
+ /**
7231
+ * A Time Picker allows the user to choose a specific time or a time range.
7232
+ */
7233
+ export declare const HvTimePicker: (props: HvTimePickerProps) => JSX_2.Element;
7234
+
7235
+ export declare type HvTimePickerClasses = ExtractNames<typeof useClasses_4>;
7236
+
7237
+ export declare type HvTimePickerClassKey = "root" | "input" | "label" | "placeholder" | "timePopperContainer" | "separator" | "periodContainer" | "formElementRoot" | "dropdownPlaceholder" | "iconBaseRoot" | "error" | "labelContainer" | "description" | "dropdownHeaderInvalid" | "dropdownPlaceholderDisabled" | "dropdownHeaderOpen";
7238
+
7239
+ export declare interface HvTimePickerProps extends Omit<HvFormElementProps, "classes" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur"> {
7240
+ /** Id to be applied to the form element root node. */
7241
+ id?: string;
7242
+ /** A Jss Object used to override or extend the styles applied to the component. */
7243
+ classes?: Partial<HvTimePickerClasses>;
7244
+ /** Current value of the element when _controlled_. Follows the 24-hour format. */
7245
+ value?: HvTimePickerValue;
7246
+ /** Initial value of the element when _uncontrolled_. Follows the 24-hour format. */
7247
+ defaultValue?: HvTimePickerValue;
7248
+ /** The placeholder value when no time is selected. */
7249
+ placeholder?: string;
7250
+ /** The placeholder of the hours input. */
7251
+ hoursPlaceholder?: string;
7252
+ /** The placeholder of the minutes input. */
7253
+ minutesPlaceholder?: string;
7254
+ /** The placeholder of the seconds input. */
7255
+ secondsPlaceholder?: string;
7256
+ /**
7257
+ * Whether the time picker should show the AM/PM 12-hour clock or the 24-hour one.
7258
+ * If undefined, the component will use a format according to the passed locale.
7259
+ */
7260
+ timeFormat?: TimeFormat;
7261
+ /** Whether to show the seconds when using the native time picker */
7262
+ showSeconds?: boolean;
7263
+ /** Locale that will provide the time format(12 or 24 hour format). It is "overwritten" by `showAmPm` */
7264
+ locale?: string;
7265
+ /** Whether the dropdown is expandable. */
7266
+ disableExpand?: boolean;
7267
+ /**
7268
+ * Callback function to be triggered when the input value is changed.
7269
+ * It is invoked with a `{hours, minutes, seconds}` object, always in the 24h format
7270
+ */
7271
+ onChange?: (value: HvTimePickerValue) => void;
7272
+ /** Callback called when dropdown changes the expanded state. */
7273
+ onToggle?: (event: Event, isOpen: boolean) => void;
7274
+ /** Disable the portal behavior. The children stay within it's parent DOM hierarchy. */
7275
+ disablePortal?: boolean;
7276
+ /** Sets if the calendar container should follow the date picker input out of the screen or stay visible. */
7277
+ escapeWithReference?: boolean;
7278
+ /** Extra properties to be passed to the TimePicker's dropdown. */
7279
+ dropdownProps?: Partial<HvBaseDropdownProps>;
7280
+ }
7281
+
7282
+ export declare type HvTimePickerValue = {
7283
+ hours: number;
7284
+ minutes: number;
7285
+ seconds: number;
7286
+ };
7287
+
7227
7288
  export declare const HvToggleButton: ForwardRefExoticComponent<HvToggleButtonProps & RefAttributes<HTMLButtonElement>>;
7228
7289
 
7229
7290
  export declare interface HvToggleButtonProps extends HvBaseProps<HTMLButtonElement, "onClick"> {
@@ -8951,6 +9012,24 @@ export declare const timeAgoClasses: {
8951
9012
  root: "HvTimeAgo-root";
8952
9013
  };
8953
9014
 
9015
+ export declare type TimeFormat = "12" | "24";
9016
+
9017
+ export declare const timePickerClasses: {
9018
+ placeholder: "HvTimerPicker-placeholder";
9019
+ label: "HvTimerPicker-label";
9020
+ icon: "HvTimerPicker-icon";
9021
+ error: "HvTimerPicker-error";
9022
+ root: "HvTimerPicker-root";
9023
+ description: "HvTimerPicker-description";
9024
+ labelContainer: "HvTimerPicker-labelContainer";
9025
+ dropdownHeader: "HvTimerPicker-dropdownHeader";
9026
+ dropdownHeaderInvalid: "HvTimerPicker-dropdownHeaderInvalid";
9027
+ dropdownHeaderOpen: "HvTimerPicker-dropdownHeaderOpen";
9028
+ placeholderDisabled: "HvTimerPicker-placeholderDisabled";
9029
+ dropdownPanel: "HvTimerPicker-dropdownPanel";
9030
+ timePopperContainer: "HvTimerPicker-timePopperContainer";
9031
+ };
9032
+
8954
9033
  export declare const tooltipClasses: {
8955
9034
  title: "HvTooltip-title";
8956
9035
  color: "HvTooltip-color";
@@ -9025,18 +9104,32 @@ export declare type UseBulkActionsProps = (<D extends object = Record<string, un
9025
9104
  pluginName: string;
9026
9105
  };
9027
9106
 
9028
- declare const useClasses: (classesProp: Partial<Record<"root" | "rootClosed" | "anchorOriginTopCenter" | "anchorOriginBottomCenter", string>>) => {
9107
+ declare const useClasses: (classesProp?: Partial<Record<"root", string>>) => {
9108
+ classes: {
9109
+ root: string;
9110
+ };
9111
+ css: {
9112
+ (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
9113
+ (...args: CSSInterpolation[]): string;
9114
+ };
9029
9115
  cx: (...args: any) => string;
9116
+ };
9117
+
9118
+ declare const useClasses_2: (classesProp?: Partial<Record<"root" | "rootClosed" | "anchorOriginTopCenter" | "anchorOriginBottomCenter", string>>) => {
9030
9119
  classes: {
9031
9120
  root: string;
9032
9121
  rootClosed: string;
9033
9122
  anchorOriginTopCenter: string;
9034
9123
  anchorOriginBottomCenter: string;
9035
9124
  };
9125
+ css: {
9126
+ (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
9127
+ (...args: CSSInterpolation[]): string;
9128
+ };
9129
+ cx: (...args: any) => string;
9036
9130
  };
9037
9131
 
9038
- declare const useClasses_2: (classesProp: Partial<Record<"default" | "action" | "error" | "warning" | "success" | "root" | "message" | "baseVariant" | "outContainer", string>>) => {
9039
- cx: (...args: any) => string;
9132
+ declare const useClasses_3: (classesProp?: Partial<Record<"default" | "action" | "error" | "warning" | "success" | "root" | "message" | "baseVariant" | "outContainer", string>>) => {
9040
9133
  classes: {
9041
9134
  default: string;
9042
9135
  action: string;
@@ -9048,6 +9141,34 @@ declare const useClasses_2: (classesProp: Partial<Record<"default" | "action" |
9048
9141
  baseVariant: string;
9049
9142
  outContainer: string;
9050
9143
  };
9144
+ css: {
9145
+ (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
9146
+ (...args: CSSInterpolation[]): string;
9147
+ };
9148
+ cx: (...args: any) => string;
9149
+ };
9150
+
9151
+ declare const useClasses_4: (classesProp?: Partial<Record<"placeholder" | "label" | "icon" | "error" | "root" | "description" | "labelContainer" | "dropdownHeader" | "dropdownHeaderInvalid" | "dropdownHeaderOpen" | "placeholderDisabled" | "dropdownPanel" | "timePopperContainer", string>>) => {
9152
+ classes: {
9153
+ placeholder: string;
9154
+ label: string;
9155
+ icon: string;
9156
+ error: string;
9157
+ root: string;
9158
+ description: string;
9159
+ labelContainer: string;
9160
+ dropdownHeader: string;
9161
+ dropdownHeaderInvalid: string;
9162
+ dropdownHeaderOpen: string;
9163
+ placeholderDisabled: string;
9164
+ dropdownPanel: string;
9165
+ timePopperContainer: string;
9166
+ };
9167
+ css: {
9168
+ (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
9169
+ (...args: CSSInterpolation[]): string;
9170
+ };
9171
+ cx: (...args: any) => string;
9051
9172
  };
9052
9173
 
9053
9174
  export declare const useClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: HvClickOutsideEvent) => void) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.15.0",
3
+ "version": "5.16.0",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "Core React components for the NEXT Design System.",
@@ -33,9 +33,9 @@
33
33
  "@emotion/css": "^11.11.0",
34
34
  "@emotion/serialize": "^1.1.2",
35
35
  "@emotion/utils": "^1.2.1",
36
- "@hitachivantara/uikit-react-icons": "^5.2.0",
37
- "@hitachivantara/uikit-react-shared": "^5.0.16",
38
- "@hitachivantara/uikit-styles": "^5.8.2",
36
+ "@hitachivantara/uikit-react-icons": "^5.2.1",
37
+ "@hitachivantara/uikit-react-shared": "^5.0.17",
38
+ "@hitachivantara/uikit-styles": "^5.8.3",
39
39
  "@internationalized/date": "^3.2.0",
40
40
  "@mui/base": "^5.0.0-beta.4",
41
41
  "@popperjs/core": "^2.11.8",
@@ -64,7 +64,7 @@
64
64
  "access": "public",
65
65
  "directory": "package"
66
66
  },
67
- "gitHead": "10acd676130dcf2a1b89481de2de9ba072b0b746",
67
+ "gitHead": "5f85a968b98dde34c02f092068b09819335551ba",
68
68
  "main": "dist/cjs/index.cjs",
69
69
  "exports": {
70
70
  ".": {
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const classes = require("../../utils/classes.cjs");
4
- const classKeys = ["root"];
5
- const actionBarClasses = classes.getClasses(classKeys, "HvActionBar");
6
- const actionBarClasses$1 = actionBarClasses;
7
- exports.default = actionBarClasses$1;
8
- //# sourceMappingURL=actionBarClasses.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actionBarClasses.cjs","sources":["../../../../src/components/ActionBar/actionBarClasses.ts"],"sourcesContent":["import { getClasses } from \"@core/utils\";\n\nexport interface HvActionBarClasses {\n root?: string;\n}\n\nconst classKeys: (keyof HvActionBarClasses)[] = [\"root\"];\n\nconst actionBarClasses = getClasses(classKeys, \"HvActionBar\");\n\nexport default actionBarClasses;\n"],"names":["classKeys","actionBarClasses","getClasses"],"mappings":";;;AAMA,MAAMA,YAA0C,CAAC,MAAM;AAEvD,MAAMC,mBAAmBC,QAAWF,WAAAA,WAAW,aAAa;AAE5D,MAAA,qBAAeC;;"}
@@ -1,8 +0,0 @@
1
- import { getClasses } from "../../utils/classes.js";
2
- const classKeys = ["root"];
3
- const actionBarClasses = getClasses(classKeys, "HvActionBar");
4
- const actionBarClasses$1 = actionBarClasses;
5
- export {
6
- actionBarClasses$1 as default
7
- };
8
- //# sourceMappingURL=actionBarClasses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actionBarClasses.js","sources":["../../../../src/components/ActionBar/actionBarClasses.ts"],"sourcesContent":["import { getClasses } from \"@core/utils\";\n\nexport interface HvActionBarClasses {\n root?: string;\n}\n\nconst classKeys: (keyof HvActionBarClasses)[] = [\"root\"];\n\nconst actionBarClasses = getClasses(classKeys, \"HvActionBar\");\n\nexport default actionBarClasses;\n"],"names":["classKeys","actionBarClasses","getClasses"],"mappings":";AAMA,MAAMA,YAA0C,CAAC,MAAM;AAEvD,MAAMC,mBAAmBC,WAAWF,WAAW,aAAa;AAE5D,MAAA,qBAAeC;"}