@deskpro/deskpro-ui 2.0.0-rc.1 → 2.0.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 (67) hide show
  1. package/dist/cjs/components/ButtonGroup/index.js +5 -1
  2. package/dist/cjs/components/ButtonGroup/index.js.map +1 -1
  3. package/dist/cjs/components/Dropdown/Dropdown.js +5 -4
  4. package/dist/cjs/components/Dropdown/Dropdown.js.map +1 -1
  5. package/dist/cjs/components/Icon/DeskproCustomIcon.js +2 -1
  6. package/dist/cjs/components/Icon/DeskproCustomIcon.js.map +1 -1
  7. package/dist/cjs/components/Icon/Icon.js +5 -5
  8. package/dist/cjs/components/Icon/Icon.js.map +1 -1
  9. package/dist/cjs/components/Overlay/index.js +5 -1
  10. package/dist/cjs/components/Overlay/index.js.map +1 -1
  11. package/dist/cjs/components/TabBar/TabBar.js +17 -29
  12. package/dist/cjs/components/TabBar/TabBar.js.map +1 -1
  13. package/dist/cjs/components/TabBar/styles/bar.js +28 -0
  14. package/dist/cjs/components/TabBar/styles/bar.js.map +1 -0
  15. package/dist/cjs/components/TabBar/styles/button.js +45 -0
  16. package/dist/cjs/components/TabBar/styles/button.js.map +1 -0
  17. package/dist/cjs/components/TabBar/styles/index.js +14 -0
  18. package/dist/cjs/components/TabBar/styles/index.js.map +1 -0
  19. package/dist/cjs/components/TabBar/styles/nav.js +92 -0
  20. package/dist/cjs/components/TabBar/styles/nav.js.map +1 -0
  21. package/dist/cjs/components/TabBar/styles/tab.js +34 -0
  22. package/dist/cjs/components/TabBar/styles/tab.js.map +1 -0
  23. package/dist/cjs/components/TabBar/types.js +3 -0
  24. package/dist/cjs/components/TabBar/types.js.map +1 -0
  25. package/dist/cjs/components/Tabs/index.js +5 -1
  26. package/dist/cjs/components/Tabs/index.js.map +1 -1
  27. package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
  28. package/dist/cjs/components/Typography/index.js +5 -1
  29. package/dist/cjs/components/Typography/index.js.map +1 -1
  30. package/dist/cjs/components/index.js +5 -2
  31. package/dist/cjs/components/index.js.map +1 -1
  32. package/dist/cjs/lib.js +5 -1
  33. package/dist/cjs/lib.js.map +1 -1
  34. package/dist/deskpro-ui.css +4 -4
  35. package/dist/deskpro-ui.d.ts +89 -333
  36. package/dist/esm/components/Dropdown/Dropdown.js +5 -4
  37. package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
  38. package/dist/esm/components/Icon/DeskproCustomIcon.js +2 -1
  39. package/dist/esm/components/Icon/DeskproCustomIcon.js.map +1 -1
  40. package/dist/esm/components/Icon/Icon.js +5 -5
  41. package/dist/esm/components/Icon/Icon.js.map +1 -1
  42. package/dist/esm/components/TabBar/TabBar.js +15 -28
  43. package/dist/esm/components/TabBar/TabBar.js.map +1 -1
  44. package/dist/esm/components/TabBar/styles/bar.js +26 -0
  45. package/dist/esm/components/TabBar/styles/bar.js.map +1 -0
  46. package/dist/esm/components/TabBar/styles/button.js +43 -0
  47. package/dist/esm/components/TabBar/styles/button.js.map +1 -0
  48. package/dist/esm/components/TabBar/styles/index.js +12 -0
  49. package/dist/esm/components/TabBar/styles/index.js.map +1 -0
  50. package/dist/esm/components/TabBar/styles/nav.js +90 -0
  51. package/dist/esm/components/TabBar/styles/nav.js.map +1 -0
  52. package/dist/esm/components/TabBar/styles/tab.js +32 -0
  53. package/dist/esm/components/TabBar/styles/tab.js.map +1 -0
  54. package/dist/esm/components/TabBar/types.js +2 -0
  55. package/dist/esm/components/TabBar/types.js.map +1 -0
  56. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  57. package/dist/esm/components/index.js +0 -1
  58. package/dist/esm/components/index.js.map +1 -1
  59. package/package.json +16 -15
  60. package/dist/cjs/components/FlagImg/FlagImg.js +0 -288
  61. package/dist/cjs/components/FlagImg/FlagImg.js.map +0 -1
  62. package/dist/cjs/components/FlagImg/index.js +0 -8
  63. package/dist/cjs/components/FlagImg/index.js.map +0 -1
  64. package/dist/esm/components/FlagImg/FlagImg.js +0 -284
  65. package/dist/esm/components/FlagImg/FlagImg.js.map +0 -1
  66. package/dist/esm/components/FlagImg/index.js +0 -2
  67. package/dist/esm/components/FlagImg/index.js.map +0 -1
@@ -12,6 +12,7 @@ import type { ComponentProps } from 'react';
12
12
  import type { ComponentType } from 'react';
13
13
  import { CSSProp } from 'styled-components';
14
14
  import { CSSProperties } from 'react';
15
+ import { CSSProperties as CSSProperties_2 } from 'styled-components';
15
16
  import { DefaultTheme } from 'styled-components';
16
17
  import { ErrorMessageProps } from 'formik';
17
18
  import type { Except } from 'type-fest';
@@ -62,8 +63,6 @@ style?: React_2.CSSProperties | undefined;
62
63
  title?: string | undefined;
63
64
  className?: string | undefined;
64
65
  type?: string | undefined;
65
- id?: string | undefined;
66
- is?: string | undefined;
67
66
  defaultChecked?: boolean | undefined;
68
67
  defaultValue?: string | number | readonly string[] | undefined;
69
68
  suppressContentEditableWarning?: boolean | undefined;
@@ -74,11 +73,12 @@ contextMenu?: string | undefined;
74
73
  dir?: string | undefined;
75
74
  draggable?: (boolean | "true" | "false") | undefined;
76
75
  hidden?: boolean | undefined;
76
+ id?: string | undefined;
77
77
  lang?: string | undefined;
78
78
  placeholder?: string | undefined;
79
79
  spellCheck?: (boolean | "true" | "false") | undefined;
80
80
  tabIndex?: number | undefined;
81
- translate?: "no" | "yes" | undefined;
81
+ translate?: "yes" | "no" | undefined;
82
82
  radioGroup?: string | undefined;
83
83
  role?: React_2.AriaRole | undefined;
84
84
  about?: string | undefined;
@@ -102,6 +102,7 @@ results?: number | undefined;
102
102
  security?: string | undefined;
103
103
  unselectable?: "on" | "off" | undefined;
104
104
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
105
+ is?: string | undefined;
105
106
  'aria-activedescendant'?: string | undefined;
106
107
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
107
108
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
@@ -335,7 +336,7 @@ export declare type AnchorButtonProps = HTMLAnchorButtonProps & CommonButtonProp
335
336
  /**
336
337
  * @public
337
338
  */
338
- export declare type AnyIcon = IconDefinition | ISO3166Code | DpCustomIconsId | SVGRIconType;
339
+ export declare type AnyIcon = IconDefinition | DpCustomIconsId | SVGRIconType | JSX.Element;
339
340
 
340
341
  /**
341
342
  * @public
@@ -483,9 +484,6 @@ title?: string | undefined;
483
484
  className?: string | undefined;
484
485
  type?: "button" | "submit" | "reset" | undefined;
485
486
  value?: string | number | readonly string[] | undefined;
486
- id?: string | undefined;
487
- is?: string | undefined;
488
- name?: string | undefined;
489
487
  defaultChecked?: boolean | undefined;
490
488
  defaultValue?: string | number | readonly string[] | undefined;
491
489
  suppressContentEditableWarning?: boolean | undefined;
@@ -496,11 +494,12 @@ contextMenu?: string | undefined;
496
494
  dir?: string | undefined;
497
495
  draggable?: (boolean | "true" | "false") | undefined;
498
496
  hidden?: boolean | undefined;
497
+ id?: string | undefined;
499
498
  lang?: string | undefined;
500
499
  placeholder?: string | undefined;
501
500
  spellCheck?: (boolean | "true" | "false") | undefined;
502
501
  tabIndex?: number | undefined;
503
- translate?: "no" | "yes" | undefined;
502
+ translate?: "yes" | "no" | undefined;
504
503
  radioGroup?: string | undefined;
505
504
  role?: React_2.AriaRole | undefined;
506
505
  about?: string | undefined;
@@ -524,6 +523,7 @@ results?: number | undefined;
524
523
  security?: string | undefined;
525
524
  unselectable?: "on" | "off" | undefined;
526
525
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
526
+ is?: string | undefined;
527
527
  'aria-activedescendant'?: string | undefined;
528
528
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
529
529
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
@@ -735,6 +735,7 @@ onAnimationIteration?: React_2.AnimationEventHandler<HTMLButtonElement> | undefi
735
735
  onAnimationIterationCapture?: React_2.AnimationEventHandler<HTMLButtonElement> | undefined;
736
736
  onTransitionEnd?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
737
737
  onTransitionEndCapture?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
738
+ name?: string | undefined;
738
739
  autoFocus?: boolean | undefined;
739
740
  disabled?: boolean | undefined;
740
741
  formAction?: string | undefined;
@@ -743,7 +744,7 @@ formMethod?: string | undefined;
743
744
  formNoValidate?: boolean | undefined;
744
745
  formTarget?: string | undefined;
745
746
  } & Omit<CommonButtonProps, "text" | "icon" | "fill" | "alignText" | "intent"> & {
746
- icon: JSX.Element | AnyIcon | IconProps | null;
747
+ icon: AnyIcon | IconProps | null;
747
748
  intent?: IconButtonIntent | undefined;
748
749
  } & {
749
750
  themeColor?: keyof ThemeColors | undefined;
@@ -781,9 +782,6 @@ title?: string | undefined;
781
782
  className?: string | undefined;
782
783
  type?: "button" | "submit" | "reset" | undefined;
783
784
  value?: string | number | readonly string[] | undefined;
784
- id?: string | undefined;
785
- is?: string | undefined;
786
- name?: string | undefined;
787
785
  defaultChecked?: boolean | undefined;
788
786
  defaultValue?: string | number | readonly string[] | undefined;
789
787
  suppressContentEditableWarning?: boolean | undefined;
@@ -794,11 +792,12 @@ contextMenu?: string | undefined;
794
792
  dir?: string | undefined;
795
793
  draggable?: (boolean | "true" | "false") | undefined;
796
794
  hidden?: boolean | undefined;
795
+ id?: string | undefined;
797
796
  lang?: string | undefined;
798
797
  placeholder?: string | undefined;
799
798
  spellCheck?: (boolean | "true" | "false") | undefined;
800
799
  tabIndex?: number | undefined;
801
- translate?: "no" | "yes" | undefined;
800
+ translate?: "yes" | "no" | undefined;
802
801
  radioGroup?: string | undefined;
803
802
  role?: React_2.AriaRole | undefined;
804
803
  about?: string | undefined;
@@ -822,6 +821,7 @@ results?: number | undefined;
822
821
  security?: string | undefined;
823
822
  unselectable?: "on" | "off" | undefined;
824
823
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
824
+ is?: string | undefined;
825
825
  'aria-activedescendant'?: string | undefined;
826
826
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
827
827
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
@@ -1033,6 +1033,7 @@ onAnimationIteration?: React_2.AnimationEventHandler<HTMLButtonElement> | undefi
1033
1033
  onAnimationIterationCapture?: React_2.AnimationEventHandler<HTMLButtonElement> | undefined;
1034
1034
  onTransitionEnd?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
1035
1035
  onTransitionEndCapture?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
1036
+ name?: string | undefined;
1036
1037
  autoFocus?: boolean | undefined;
1037
1038
  disabled?: boolean | undefined;
1038
1039
  formAction?: string | undefined;
@@ -1041,7 +1042,7 @@ formMethod?: string | undefined;
1041
1042
  formNoValidate?: boolean | undefined;
1042
1043
  formTarget?: string | undefined;
1043
1044
  } & Omit<CommonButtonProps, "text" | "icon" | "fill" | "alignText" | "intent"> & {
1044
- icon: JSX.Element | AnyIcon | IconProps | null;
1045
+ icon: AnyIcon | IconProps | null;
1045
1046
  intent?: IconButtonIntent | undefined;
1046
1047
  } & {
1047
1048
  themeColor?: keyof ThemeColors | undefined;
@@ -1143,9 +1144,6 @@ title?: string | undefined;
1143
1144
  className?: string | undefined;
1144
1145
  type?: "button" | "submit" | "reset" | undefined;
1145
1146
  value?: string | number | readonly string[] | undefined;
1146
- id?: string | undefined;
1147
- is?: string | undefined;
1148
- name?: string | undefined;
1149
1147
  defaultChecked?: boolean | undefined;
1150
1148
  defaultValue?: string | number | readonly string[] | undefined;
1151
1149
  suppressContentEditableWarning?: boolean | undefined;
@@ -1156,11 +1154,12 @@ contextMenu?: string | undefined;
1156
1154
  dir?: string | undefined;
1157
1155
  draggable?: (boolean | "true" | "false") | undefined;
1158
1156
  hidden?: boolean | undefined;
1157
+ id?: string | undefined;
1159
1158
  lang?: string | undefined;
1160
1159
  placeholder?: string | undefined;
1161
1160
  spellCheck?: (boolean | "true" | "false") | undefined;
1162
1161
  tabIndex?: number | undefined;
1163
- translate?: "no" | "yes" | undefined;
1162
+ translate?: "yes" | "no" | undefined;
1164
1163
  radioGroup?: string | undefined;
1165
1164
  role?: React_2.AriaRole | undefined;
1166
1165
  about?: string | undefined;
@@ -1184,6 +1183,7 @@ results?: number | undefined;
1184
1183
  security?: string | undefined;
1185
1184
  unselectable?: "on" | "off" | undefined;
1186
1185
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1186
+ is?: string | undefined;
1187
1187
  'aria-activedescendant'?: string | undefined;
1188
1188
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
1189
1189
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
@@ -1395,6 +1395,7 @@ onAnimationIteration?: React_2.AnimationEventHandler<HTMLButtonElement> | undefi
1395
1395
  onAnimationIterationCapture?: React_2.AnimationEventHandler<HTMLButtonElement> | undefined;
1396
1396
  onTransitionEnd?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
1397
1397
  onTransitionEndCapture?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
1398
+ name?: string | undefined;
1398
1399
  autoFocus?: boolean | undefined;
1399
1400
  disabled?: boolean | undefined;
1400
1401
  formAction?: string | undefined;
@@ -1718,7 +1719,7 @@ declare type DpCustomIconsId = "active-call" | "admin" | "agent" | "api" | "apps
1718
1719
  * </Dropdown>
1719
1720
  * ```
1720
1721
  */
1721
- export declare function Dropdown<T, TargetRef extends HTMLElement = any, TabId extends string = string>({ children, options, stickyHeaderOptions, stickyFooterOptions, inputValue, searchPlaceholder, placement, showInternalSearch, isLoading, usePortal, closeOnSelect, isOpen: isOpenProp, renderCreateNewOption, hideIcons, iconColumnWidth, containerWidth, containerHeight, onSelectOption, onInputChange, onFetchMore, onClear, onClose, onOpen, optionsRenderer, tabProps, disabled, fetchMoreText, autoscrollText, externalLinkIcon, selectedIcon, }: DropdownProps<T, TargetRef, TabId>): JSX.Element;
1722
+ export declare function Dropdown<T, TargetRef extends HTMLElement = any>({ children, options, stickyHeaderOptions, stickyFooterOptions, inputValue, searchPlaceholder, placement, showInternalSearch, isLoading, usePortal, closeOnSelect, isOpen: isOpenProp, renderCreateNewOption, hideIcons, iconColumnWidth, containerWidth, containerHeight, onSelectOption, onInputChange, onFetchMore, onClear, onClose, onOpen, optionsRenderer, tabProps, disabled, fetchMoreText, autoscrollText, externalLinkIcon, selectedIcon, }: DropdownProps<T, TargetRef>): JSX.Element;
1722
1723
 
1723
1724
  /**
1724
1725
  * @public
@@ -1809,7 +1810,7 @@ export declare type DropdownItemType<T = unknown> = DropdownValueType<T> | Dropd
1809
1810
  /**
1810
1811
  * @public
1811
1812
  */
1812
- export declare interface DropdownProps<T, TargetRef extends HTMLElement, TabId extends string = string> {
1813
+ export declare interface DropdownProps<T, TargetRef extends HTMLElement> {
1813
1814
  /** List of options to render */
1814
1815
  options: DropdownItemType<T>[];
1815
1816
  /** Control over whether the dropdown is open - default uncontrolled */
@@ -1891,7 +1892,7 @@ export declare interface DropdownProps<T, TargetRef extends HTMLElement, TabId e
1891
1892
  /** Override the rendering of the contents of the dropdown container */
1892
1893
  optionsRenderer?: (options: DropdownItemType<T>[], handleSelectOption: (value: DropdownValueType<T>) => void, activeItem: DropdownValueType<T> | null, activeSubItem: string | null, setActiveSubItem: React_2.Dispatch<React_2.SetStateAction<string | null>>, hideIcons: boolean | undefined) => ReactNode;
1893
1894
  /** Props for rendering tabs within the dropdown */
1894
- tabProps?: DropdownTabProps<TabId>;
1895
+ tabProps?: DropdownTabProps;
1895
1896
  /** The text to show for the fetch more button */
1896
1897
  fetchMoreText: ReactNode;
1897
1898
  /** The text to show for the autoscroll button */
@@ -1919,10 +1920,10 @@ declare interface DropdownResetButtonProps {
1919
1920
  /**
1920
1921
  * @public
1921
1922
  */
1922
- export declare interface DropdownTabProps<TabId> {
1923
- tabs: TabbedSectionTabType<TabId>[];
1924
- activeTabId: TabId;
1925
- onTabChange: (value: TabbedSectionTabType<TabId>) => void;
1923
+ export declare interface DropdownTabProps {
1924
+ tabs: TabBarItemType[];
1925
+ activeTabIndex: number;
1926
+ onTabChange: (index: number) => void;
1926
1927
  }
1927
1928
 
1928
1929
  /**
@@ -2000,26 +2001,6 @@ export declare interface FaIconAvatarProps {
2000
2001
  iconStyles?: CSSProperties;
2001
2002
  }
2002
2003
 
2003
- /**
2004
- * Renders img with high quality flag svg using ISO 3166 code.
2005
- * Supports ISO 3166-1 alpha-2 codes (e.g. "US", "GB") and ISO 3166-2 codes
2006
- * for Scotland, Wales, Northern Ireland, and England (e.g. "GB-SCT")
2007
- * @public
2008
- */
2009
- export declare const FlagImg: StyledComponent<React_2.ForwardRefExoticComponent<FlagProps & React_2.RefAttributes<HTMLSpanElement>>, DefaultTheme, {}, never>;
2010
-
2011
- /**
2012
- * @public
2013
- */
2014
- export declare interface FlagProps extends HTMLAttributes<HTMLImageElement> {
2015
- /**
2016
- * ISO 3166-1 alpha-2 code or ISO 3166-2 codes for Scotland, Wales, Northern
2017
- * Ireland, and England
2018
- */
2019
- isoCode: string;
2020
- className?: string;
2021
- }
2022
-
2023
2004
  /**
2024
2005
  * Wrapper around Formik's useField hook and ErrorMessage component
2025
2006
  * @public
@@ -2184,9 +2165,6 @@ title?: string | undefined;
2184
2165
  className?: string | undefined;
2185
2166
  type?: "button" | "submit" | "reset" | undefined;
2186
2167
  value?: string | number | readonly string[] | undefined;
2187
- id?: string | undefined;
2188
- is?: string | undefined;
2189
- name?: string | undefined;
2190
2168
  defaultChecked?: boolean | undefined;
2191
2169
  defaultValue?: string | number | readonly string[] | undefined;
2192
2170
  suppressContentEditableWarning?: boolean | undefined;
@@ -2197,11 +2175,12 @@ contextMenu?: string | undefined;
2197
2175
  dir?: string | undefined;
2198
2176
  draggable?: (boolean | "true" | "false") | undefined;
2199
2177
  hidden?: boolean | undefined;
2178
+ id?: string | undefined;
2200
2179
  lang?: string | undefined;
2201
2180
  placeholder?: string | undefined;
2202
2181
  spellCheck?: (boolean | "true" | "false") | undefined;
2203
2182
  tabIndex?: number | undefined;
2204
- translate?: "no" | "yes" | undefined;
2183
+ translate?: "yes" | "no" | undefined;
2205
2184
  radioGroup?: string | undefined;
2206
2185
  role?: React_2.AriaRole | undefined;
2207
2186
  about?: string | undefined;
@@ -2225,6 +2204,7 @@ results?: number | undefined;
2225
2204
  security?: string | undefined;
2226
2205
  unselectable?: "on" | "off" | undefined;
2227
2206
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
2207
+ is?: string | undefined;
2228
2208
  'aria-activedescendant'?: string | undefined;
2229
2209
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
2230
2210
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
@@ -2436,6 +2416,7 @@ onAnimationIteration?: React_2.AnimationEventHandler<HTMLButtonElement> | undefi
2436
2416
  onAnimationIterationCapture?: React_2.AnimationEventHandler<HTMLButtonElement> | undefined;
2437
2417
  onTransitionEnd?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
2438
2418
  onTransitionEndCapture?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
2419
+ name?: string | undefined;
2439
2420
  autoFocus?: boolean | undefined;
2440
2421
  disabled?: boolean | undefined;
2441
2422
  formAction?: string | undefined;
@@ -2444,7 +2425,7 @@ formMethod?: string | undefined;
2444
2425
  formNoValidate?: boolean | undefined;
2445
2426
  formTarget?: string | undefined;
2446
2427
  } & Omit<CommonButtonProps, "text" | "icon" | "fill" | "alignText" | "intent"> & {
2447
- icon: JSX.Element | AnyIcon | IconProps | null;
2428
+ icon: AnyIcon | IconProps | null;
2448
2429
  intent?: IconButtonIntent | undefined;
2449
2430
  } & {
2450
2431
  themeColor?: keyof ThemeColors | undefined;
@@ -2626,275 +2607,6 @@ export declare function isFaIcon(icon: unknown): icon is IconDefinition;
2626
2607
  */
2627
2608
  export declare function isIconProps(props: unknown): props is IconProps;
2628
2609
 
2629
- /**
2630
- * @public
2631
- */
2632
- export declare function isISO3166(code: unknown): code is ISO3166Code;
2633
-
2634
- /**
2635
- * @public
2636
- */
2637
- export declare type ISO3166Code = keyof typeof iso3166FlagMap;
2638
-
2639
- /**
2640
- * @public
2641
- */
2642
- export declare const iso3166FlagMap: {
2643
- AD: string;
2644
- AE: string;
2645
- AF: string;
2646
- AG: string;
2647
- AI: string;
2648
- AL: string;
2649
- AM: string;
2650
- AO: string;
2651
- AQ: string;
2652
- AR: string;
2653
- AS: string;
2654
- AT: string;
2655
- AU: string;
2656
- AW: string;
2657
- AX: string;
2658
- AZ: string;
2659
- BA: string;
2660
- BB: string;
2661
- BD: string;
2662
- BE: string;
2663
- BF: string;
2664
- BG: string;
2665
- BH: string;
2666
- BI: string;
2667
- BJ: string;
2668
- BL: string;
2669
- BM: string;
2670
- BN: string;
2671
- BO: string;
2672
- BQ: string;
2673
- BR: string;
2674
- BS: string;
2675
- BT: string;
2676
- BV: string;
2677
- BW: string;
2678
- BY: string;
2679
- BZ: string;
2680
- CA: string;
2681
- CC: string;
2682
- CD: string;
2683
- CF: string;
2684
- CG: string;
2685
- CH: string;
2686
- CI: string;
2687
- CK: string;
2688
- CL: string;
2689
- CM: string;
2690
- CN: string;
2691
- CO: string;
2692
- CR: string;
2693
- CU: string;
2694
- CV: string;
2695
- CW: string;
2696
- CX: string;
2697
- CY: string;
2698
- CZ: string;
2699
- DE: string;
2700
- DJ: string;
2701
- DK: string;
2702
- DM: string;
2703
- DO: string;
2704
- DZ: string;
2705
- EC: string;
2706
- EE: string;
2707
- EG: string;
2708
- EH: string;
2709
- ER: string;
2710
- ES: string;
2711
- ET: string;
2712
- FI: string;
2713
- FJ: string;
2714
- FK: string;
2715
- FM: string;
2716
- FO: string;
2717
- FR: string;
2718
- GA: string;
2719
- "GB-ENG": string;
2720
- "GB-SCT": string;
2721
- "GB-WLS": string;
2722
- GB: string;
2723
- GD: string;
2724
- GE: string;
2725
- GF: string;
2726
- GG: string;
2727
- GH: string;
2728
- GI: string;
2729
- GL: string;
2730
- GM: string;
2731
- GN: string;
2732
- GP: string;
2733
- GQ: string;
2734
- GR: string;
2735
- GS: string;
2736
- GT: string;
2737
- GU: string;
2738
- GW: string;
2739
- GY: string;
2740
- HK: string;
2741
- HM: string;
2742
- HN: string;
2743
- HR: string;
2744
- HT: string;
2745
- HU: string;
2746
- ID: string;
2747
- IE: string;
2748
- IL: string;
2749
- IM: string;
2750
- IN: string;
2751
- IO: string;
2752
- IQ: string;
2753
- IR: string;
2754
- IS: string;
2755
- IT: string;
2756
- JE: string;
2757
- JM: string;
2758
- JO: string;
2759
- JP: string;
2760
- KE: string;
2761
- KG: string;
2762
- KH: string;
2763
- KI: string;
2764
- KM: string;
2765
- KN: string;
2766
- KP: string;
2767
- KR: string;
2768
- KW: string;
2769
- KY: string;
2770
- KZ: string;
2771
- LA: string;
2772
- LB: string;
2773
- LC: string;
2774
- LI: string;
2775
- LK: string;
2776
- LR: string;
2777
- LS: string;
2778
- LT: string;
2779
- LU: string;
2780
- LV: string;
2781
- LY: string;
2782
- MA: string;
2783
- MC: string;
2784
- MD: string;
2785
- ME: string;
2786
- MF: string;
2787
- MG: string;
2788
- MH: string;
2789
- MK: string;
2790
- ML: string;
2791
- MM: string;
2792
- MN: string;
2793
- MO: string;
2794
- MP: string;
2795
- MQ: string;
2796
- MR: string;
2797
- MS: string;
2798
- MT: string;
2799
- MU: string;
2800
- MV: string;
2801
- MW: string;
2802
- MX: string;
2803
- MY: string;
2804
- MZ: string;
2805
- NA: string;
2806
- NC: string;
2807
- NE: string;
2808
- NF: string;
2809
- NG: string;
2810
- NI: string;
2811
- NL: string;
2812
- NO: string;
2813
- NP: string;
2814
- NR: string;
2815
- NU: string;
2816
- NZ: string;
2817
- OM: string;
2818
- PA: string;
2819
- PE: string;
2820
- PF: string;
2821
- PG: string;
2822
- PH: string;
2823
- PK: string;
2824
- PL: string;
2825
- PM: string;
2826
- PN: string;
2827
- PR: string;
2828
- PS: string;
2829
- PT: string;
2830
- PW: string;
2831
- PY: string;
2832
- QA: string;
2833
- RE: string;
2834
- RO: string;
2835
- RS: string;
2836
- RU: string;
2837
- RW: string;
2838
- SA: string;
2839
- SB: string;
2840
- SC: string;
2841
- SD: string;
2842
- SE: string;
2843
- SG: string;
2844
- SH: string;
2845
- SI: string;
2846
- SJ: string;
2847
- SK: string;
2848
- SL: string;
2849
- SM: string;
2850
- SN: string;
2851
- SO: string;
2852
- SR: string;
2853
- SS: string;
2854
- ST: string;
2855
- SV: string;
2856
- SX: string;
2857
- SY: string;
2858
- SZ: string;
2859
- TC: string;
2860
- TD: string;
2861
- TF: string;
2862
- TG: string;
2863
- TH: string;
2864
- TJ: string;
2865
- TK: string;
2866
- TL: string;
2867
- TM: string;
2868
- TN: string;
2869
- TO: string;
2870
- TR: string;
2871
- TT: string;
2872
- TV: string;
2873
- TW: string;
2874
- TZ: string;
2875
- UA: string;
2876
- UG: string;
2877
- UM: string;
2878
- US: string;
2879
- UY: string;
2880
- UZ: string;
2881
- JD: string;
2882
- VC: string;
2883
- VE: string;
2884
- VG: string;
2885
- VI: string;
2886
- VN: string;
2887
- VU: string;
2888
- WF: string;
2889
- WS: string;
2890
- XK: string;
2891
- YE: string;
2892
- YT: string;
2893
- ZA: string;
2894
- ZM: string;
2895
- ZW: string;
2896
- };
2897
-
2898
2610
  /**
2899
2611
  * @public
2900
2612
  */
@@ -3147,7 +2859,10 @@ export declare interface ModalProps extends Omit<OverlayProps, "scrollable"> {
3147
2859
  closeIcon: AnyIcon;
3148
2860
  }
3149
2861
 
3150
- declare type modalStyleTypes = "extraDark" | "dark" | "light" | "lightBox" | "lightBoxModal";
2862
+ /**
2863
+ * @public
2864
+ */
2865
+ export declare type ModalStyleTypes = "extraDark" | "dark" | "light" | "lightBox" | "lightBoxModal";
3151
2866
 
3152
2867
  /**
3153
2868
  * @public
@@ -3160,9 +2875,6 @@ title?: string | undefined;
3160
2875
  className?: string | undefined;
3161
2876
  type?: "button" | "submit" | "reset" | undefined;
3162
2877
  value?: string | number | readonly string[] | undefined;
3163
- id?: string | undefined;
3164
- is?: string | undefined;
3165
- name?: string | undefined;
3166
2878
  defaultChecked?: boolean | undefined;
3167
2879
  defaultValue?: string | number | readonly string[] | undefined;
3168
2880
  suppressContentEditableWarning?: boolean | undefined;
@@ -3173,11 +2885,12 @@ contextMenu?: string | undefined;
3173
2885
  dir?: string | undefined;
3174
2886
  draggable?: (boolean | "true" | "false") | undefined;
3175
2887
  hidden?: boolean | undefined;
2888
+ id?: string | undefined;
3176
2889
  lang?: string | undefined;
3177
2890
  placeholder?: string | undefined;
3178
2891
  spellCheck?: (boolean | "true" | "false") | undefined;
3179
2892
  tabIndex?: number | undefined;
3180
- translate?: "no" | "yes" | undefined;
2893
+ translate?: "yes" | "no" | undefined;
3181
2894
  radioGroup?: string | undefined;
3182
2895
  role?: React_2.AriaRole | undefined;
3183
2896
  about?: string | undefined;
@@ -3201,6 +2914,7 @@ results?: number | undefined;
3201
2914
  security?: string | undefined;
3202
2915
  unselectable?: "on" | "off" | undefined;
3203
2916
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
2917
+ is?: string | undefined;
3204
2918
  'aria-activedescendant'?: string | undefined;
3205
2919
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
3206
2920
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
@@ -3412,6 +3126,7 @@ onAnimationIteration?: React_2.AnimationEventHandler<HTMLButtonElement> | undefi
3412
3126
  onAnimationIterationCapture?: React_2.AnimationEventHandler<HTMLButtonElement> | undefined;
3413
3127
  onTransitionEnd?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
3414
3128
  onTransitionEndCapture?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
3129
+ name?: string | undefined;
3415
3130
  autoFocus?: boolean | undefined;
3416
3131
  disabled?: boolean | undefined;
3417
3132
  formAction?: string | undefined;
@@ -3420,7 +3135,7 @@ formMethod?: string | undefined;
3420
3135
  formNoValidate?: boolean | undefined;
3421
3136
  formTarget?: string | undefined;
3422
3137
  } & Omit<CommonButtonProps, "icon" | "size" | "fill" | "loading" | "danger" | "rightIcon" | "minimal"> & {
3423
- icon: JSX.Element | AnyIcon | IconProps | null;
3138
+ icon: AnyIcon | IconProps | null;
3424
3139
  size?: "small" | "normal" | undefined;
3425
3140
  reverse?: boolean | undefined;
3426
3141
  } & React_2.RefAttributes<HTMLButtonElement>>, DefaultTheme, {}, never>;
@@ -3495,9 +3210,6 @@ title?: string | undefined;
3495
3210
  className?: string | undefined;
3496
3211
  type?: "button" | "submit" | "reset" | undefined;
3497
3212
  value?: string | number | readonly string[] | undefined;
3498
- id?: string | undefined;
3499
- is?: string | undefined;
3500
- name?: string | undefined;
3501
3213
  defaultChecked?: boolean | undefined;
3502
3214
  defaultValue?: string | number | readonly string[] | undefined;
3503
3215
  suppressContentEditableWarning?: boolean | undefined;
@@ -3508,11 +3220,12 @@ contextMenu?: string | undefined;
3508
3220
  dir?: string | undefined;
3509
3221
  draggable?: (boolean | "true" | "false") | undefined;
3510
3222
  hidden?: boolean | undefined;
3223
+ id?: string | undefined;
3511
3224
  lang?: string | undefined;
3512
3225
  placeholder?: string | undefined;
3513
3226
  spellCheck?: (boolean | "true" | "false") | undefined;
3514
3227
  tabIndex?: number | undefined;
3515
- translate?: "no" | "yes" | undefined;
3228
+ translate?: "yes" | "no" | undefined;
3516
3229
  radioGroup?: string | undefined;
3517
3230
  role?: React_2.AriaRole | undefined;
3518
3231
  about?: string | undefined;
@@ -3536,6 +3249,7 @@ results?: number | undefined;
3536
3249
  security?: string | undefined;
3537
3250
  unselectable?: "on" | "off" | undefined;
3538
3251
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
3252
+ is?: string | undefined;
3539
3253
  'aria-activedescendant'?: string | undefined;
3540
3254
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
3541
3255
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
@@ -3747,6 +3461,7 @@ onAnimationIteration?: React_2.AnimationEventHandler<HTMLButtonElement> | undefi
3747
3461
  onAnimationIterationCapture?: React_2.AnimationEventHandler<HTMLButtonElement> | undefined;
3748
3462
  onTransitionEnd?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
3749
3463
  onTransitionEndCapture?: React_2.TransitionEventHandler<HTMLButtonElement> | undefined;
3464
+ name?: string | undefined;
3750
3465
  autoFocus?: boolean | undefined;
3751
3466
  disabled?: boolean | undefined;
3752
3467
  formAction?: string | undefined;
@@ -3755,9 +3470,9 @@ formMethod?: string | undefined;
3755
3470
  formNoValidate?: boolean | undefined;
3756
3471
  formTarget?: string | undefined;
3757
3472
  } & Omit<CommonButtonProps, "icon" | "size" | "fill" | "rightIcon" | "minimal"> & {
3758
- icon?: JSX.Element | AnyIcon | IconProps | null | undefined;
3473
+ icon?: AnyIcon | IconProps | null | undefined;
3759
3474
  placement?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "middle-top" | "middle-bottom" | undefined;
3760
- rightIcon?: JSX.Element | AnyIcon | IconProps | null | undefined;
3475
+ rightIcon?: AnyIcon | IconProps | null | undefined;
3761
3476
  } & React_2.RefAttributes<HTMLButtonElement>>, DefaultTheme, {
3762
3477
  position?: "absolute" | "relative" | undefined;
3763
3478
  }, never>;
@@ -4282,6 +3997,13 @@ export declare const StyledA: StyledComponent<"a", DefaultTheme, {
4282
3997
  underline?: boolean | undefined;
4283
3998
  }, never>;
4284
3999
 
4000
+ declare const styles: {
4001
+ bar: TabStyleDef;
4002
+ button: TabStyleDef;
4003
+ nav: TabStyleDef;
4004
+ tab: TabStyleDef;
4005
+ };
4006
+
4285
4007
  declare type SVGRIconType = (props: ComponentProps<"svg">) => JSX.Element;
4286
4008
 
4287
4009
  /**
@@ -4292,7 +4014,7 @@ export declare const Tab: React_2.ForwardRefExoticComponent<TabProps & React_2.R
4292
4014
  /**
4293
4015
  * @public
4294
4016
  */
4295
- export declare const TabBar: ({ tabs, activeIndex, onClickTab, ...rest }: TabBarProps) => JSX.Element;
4017
+ export declare const TabBar: ({ tabs, activeIndex, onClickTab, type, isTicketHistory, tooltipStyle, tooltipPlacement, containerStyles, className, ...rest }: TabBarProps) => JSX.Element;
4296
4018
 
4297
4019
  /**
4298
4020
  * @public
@@ -4300,6 +4022,8 @@ export declare const TabBar: ({ tabs, activeIndex, onClickTab, ...rest }: TabBar
4300
4022
  export declare type TabBarItemType = {
4301
4023
  label: ReactNode;
4302
4024
  icon?: AnyIcon;
4025
+ disabled?: boolean;
4026
+ tooltip?: ReactNode;
4303
4027
  };
4304
4028
 
4305
4029
  /**
@@ -4309,6 +4033,12 @@ export declare interface TabBarProps extends HTMLAttributes<HTMLDivElement> {
4309
4033
  tabs: TabBarItemType[];
4310
4034
  activeIndex?: number;
4311
4035
  onClickTab: (activeIndex: number) => void;
4036
+ type?: TabType;
4037
+ isTicketHistory?: boolean;
4038
+ tooltipStyle?: ModalStyleTypes;
4039
+ tooltipPlacement?: TooltipPlacement;
4040
+ containerStyles?: CSSProperties_2;
4041
+ className?: string;
4312
4042
  }
4313
4043
 
4314
4044
  /**
@@ -4319,6 +4049,12 @@ export declare interface TabBarTabProps {
4319
4049
  label: ReactNode;
4320
4050
  active: boolean;
4321
4051
  onClick: () => void;
4052
+ type: TabType;
4053
+ disabled?: boolean;
4054
+ isTicketHistory?: boolean;
4055
+ tooltip?: ReactNode;
4056
+ tooltipStyle?: ModalStyleTypes;
4057
+ tooltipPlacement?: TooltipPlacement;
4322
4058
  }
4323
4059
 
4324
4060
  /**
@@ -4385,6 +4121,26 @@ export declare function Tabs({ children }: {
4385
4121
  children: ReactNode;
4386
4122
  }): JSX.Element;
4387
4123
 
4124
+ declare type TabStyleDef = {
4125
+ container?: () => FlattenInterpolation<ThemeProps<DefaultTheme>>;
4126
+ TabContainer?: (props: {
4127
+ active?: boolean;
4128
+ disabled?: boolean;
4129
+ isTicketHistory?: boolean;
4130
+ }) => FlattenInterpolation<ThemeProps<DefaultTheme>>;
4131
+ TabInner?: (props: {
4132
+ active?: boolean;
4133
+ disabled?: boolean;
4134
+ isTicketHistory?: boolean;
4135
+ }) => FlattenInterpolation<ThemeProps<DefaultTheme>>;
4136
+ label?: () => FlattenInterpolation<ThemeProps<DefaultTheme>>;
4137
+ };
4138
+
4139
+ /**
4140
+ * @public
4141
+ */
4142
+ export declare type TabType = keyof typeof styles;
4143
+
4388
4144
  /**
4389
4145
  * @public
4390
4146
  */
@@ -4759,7 +4515,7 @@ export declare type TooltipPlacement = TippyProps["placement"];
4759
4515
  * @public
4760
4516
  */
4761
4517
  export declare interface TooltipProps extends TippyProps {
4762
- styleType?: modalStyleTypes;
4518
+ styleType?: ModalStyleTypes;
4763
4519
  suppressClassNameWarning?: boolean;
4764
4520
  width?: number | string;
4765
4521
  offsetTop?: number | string;