@transferwise/components 0.0.0-experimental-dad811d → 0.0.0-experimental-5ea6623

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 (102) hide show
  1. package/build/index.esm.js +268 -506
  2. package/build/index.esm.js.map +1 -1
  3. package/build/index.js +242 -480
  4. package/build/index.js.map +1 -1
  5. package/build/main.css +6 -82
  6. package/build/styles/decision/Decision.css +6 -82
  7. package/build/styles/main.css +6 -82
  8. package/build/types/actionButton/ActionButton.d.ts +1 -1
  9. package/build/types/body/Body.d.ts +1 -1
  10. package/build/types/card/Card.d.ts +0 -1
  11. package/build/types/card/Card.d.ts.map +1 -1
  12. package/build/types/common/Option/Option.d.ts +0 -1
  13. package/build/types/common/Option/Option.d.ts.map +1 -1
  14. package/build/types/common/RadioButton/RadioButton.d.ts +10 -34
  15. package/build/types/common/RadioButton/RadioButton.d.ts.map +1 -1
  16. package/build/types/common/RadioButton/index.d.ts +1 -1
  17. package/build/types/common/RadioButton/index.d.ts.map +1 -1
  18. package/build/types/common/commonProps.d.ts +1 -1
  19. package/build/types/common/commonProps.d.ts.map +1 -1
  20. package/build/types/common/panel/Panel.d.ts +1 -1
  21. package/build/types/common/responsivePanel/ResponsivePanel.d.ts +1 -1
  22. package/build/types/dateInput/index.d.ts +2 -2
  23. package/build/types/dateInput/index.d.ts.map +1 -1
  24. package/build/types/dateLookup/DateLookup.d.ts +1 -0
  25. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  26. package/build/types/decision/Decision.d.ts +39 -52
  27. package/build/types/decision/Decision.d.ts.map +1 -1
  28. package/build/types/decision/index.d.ts +1 -2
  29. package/build/types/decision/index.d.ts.map +1 -1
  30. package/build/types/dimmer/Dimmer.d.ts +1 -1
  31. package/build/types/index.d.ts +5 -0
  32. package/build/types/index.d.ts.map +1 -1
  33. package/build/types/promoCard/PromoCard.d.ts +1 -2
  34. package/build/types/promoCard/PromoCard.d.ts.map +1 -1
  35. package/build/types/radio/Radio.d.ts +10 -21
  36. package/build/types/radio/Radio.d.ts.map +1 -1
  37. package/build/types/radio/index.d.ts +2 -2
  38. package/build/types/radio/index.d.ts.map +1 -1
  39. package/build/types/radioGroup/RadioGroup.d.ts +10 -26
  40. package/build/types/radioGroup/RadioGroup.d.ts.map +1 -1
  41. package/build/types/radioGroup/index.d.ts +2 -1
  42. package/build/types/radioGroup/index.d.ts.map +1 -1
  43. package/build/types/radioOption/RadioOption.d.ts +15 -23
  44. package/build/types/radioOption/RadioOption.d.ts.map +1 -1
  45. package/build/types/radioOption/index.d.ts +2 -1
  46. package/build/types/radioOption/index.d.ts.map +1 -1
  47. package/build/types/select/searchBox/SearchBox.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/src/card/Card.js +0 -3
  50. package/src/card/Card.story.js +2 -17
  51. package/src/common/Option/Option.spec.js +0 -7
  52. package/src/common/Option/Option.tsx +1 -9
  53. package/src/common/RadioButton/RadioButton.tsx +43 -0
  54. package/src/common/commonProps.ts +1 -1
  55. package/src/dateInput/index.ts +2 -3
  56. package/src/dateLookup/DateLookup.js +12 -1
  57. package/src/dateLookup/DateLookup.testingLibrary.spec.js +12 -1
  58. package/src/decision/Decision.css +6 -82
  59. package/src/decision/Decision.less +3 -41
  60. package/src/decision/Decision.spec.js +56 -61
  61. package/src/decision/{Decision.story.js → Decision.story.tsx} +5 -5
  62. package/src/decision/Decision.tsx +133 -0
  63. package/src/decision/index.ts +1 -0
  64. package/src/index.ts +5 -0
  65. package/src/main.css +6 -82
  66. package/src/promoCard/PromoCard.tsx +1 -2
  67. package/src/radio/{Radio.story.js → Radio.story.tsx} +0 -3
  68. package/src/radio/{Radio.js → Radio.tsx} +18 -28
  69. package/src/radio/index.ts +2 -0
  70. package/src/radioGroup/RadioGroup.spec.js +24 -26
  71. package/src/radioGroup/{RadioGroup.story.js → RadioGroup.story.tsx} +0 -3
  72. package/src/radioGroup/RadioGroup.tsx +43 -0
  73. package/src/radioGroup/index.ts +2 -0
  74. package/src/radioOption/RadioOption.spec.js +4 -4
  75. package/src/radioOption/{RadioOption.story.js → RadioOption.story.tsx} +4 -4
  76. package/src/radioOption/RadioOption.tsx +60 -0
  77. package/src/radioOption/index.ts +2 -0
  78. package/src/tile/Tile.js +1 -1
  79. package/build/types/decision/decisionEnums.d.ts +0 -9
  80. package/build/types/decision/decisionEnums.d.ts.map +0 -1
  81. package/build/types/sizeSwapper/SizeSwapper.d.ts +0 -3
  82. package/build/types/sizeSwapper/SizeSwapper.d.ts.map +0 -1
  83. package/build/types/sizeSwapper/index.d.ts +0 -2
  84. package/build/types/sizeSwapper/index.d.ts.map +0 -1
  85. package/src/common/RadioButton/RadioButton.js +0 -41
  86. package/src/decision/Decision.js +0 -148
  87. package/src/decision/decisionEnums.ts +0 -11
  88. package/src/decision/index.js +0 -2
  89. package/src/radio/index.js +0 -3
  90. package/src/radioGroup/RadioGroup.js +0 -66
  91. package/src/radioGroup/index.js +0 -1
  92. package/src/radioOption/RadioOption.js +0 -81
  93. package/src/radioOption/index.js +0 -1
  94. package/src/sizeSwapper/SizeSwapper.js +0 -69
  95. package/src/sizeSwapper/SizeSwapper.spec.js +0 -100
  96. package/src/sizeSwapper/SizeSwapper.story.js +0 -34
  97. package/src/sizeSwapper/index.js +0 -1
  98. /package/src/common/RadioButton/{RadioButton.spec.js → RadioButton.spec.tsx} +0 -0
  99. /package/src/common/RadioButton/__snapshots__/{RadioButton.spec.js.snap → RadioButton.spec.tsx.snap} +0 -0
  100. /package/src/common/RadioButton/{index.js → index.ts} +0 -0
  101. /package/src/radio/{Radio.rtl.spec.js → Radio.rtl.spec.tsx} +0 -0
  102. /package/src/radio/__snapshots__/{Radio.rtl.spec.js.snap → Radio.rtl.spec.tsx.snap} +0 -0
package/build/main.css CHANGED
@@ -1598,95 +1598,19 @@ button.np-option {
1598
1598
  .np-decision .decision {
1599
1599
  display: flex;
1600
1600
  }
1601
- .np-decision__tile--small + .np-decision__tile--small {
1602
- margin-left: 16px;
1603
- margin-left: var(--size-16);
1604
- }
1605
- [dir="rtl"] .np-decision__tile--small + .np-decision__tile--small {
1606
- margin-right: 16px;
1607
- margin-right: var(--size-16);
1608
- margin-left: 0;
1609
- margin-left: initial;
1610
- }
1611
- .np-decision.np-decision--grid .np-decision__tile--small {
1612
- margin-left: 0;
1613
- margin-bottom: 16px !important;
1614
- margin-bottom: var(--size-16) !important;
1615
- }
1616
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile--small {
1617
- margin-right: 0;
1618
- margin-left: 0;
1619
- margin-left: initial;
1620
- }
1621
- .np-decision.np-decision--grid .np-decision__tile--small:not(:last-of-type) {
1622
- margin-right: 16px;
1623
- margin-right: var(--size-16);
1624
- }
1625
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile--small:not(:last-of-type) {
1626
- margin-left: 16px;
1627
- margin-left: var(--size-16);
1628
- margin-right: 0;
1629
- margin-right: initial;
1630
- }
1631
- .np-decision__tile + .np-decision__tile {
1632
- margin-left: 24px;
1633
- margin-left: var(--size-24);
1634
- }
1635
- [dir="rtl"] .np-decision__tile + .np-decision__tile {
1636
- margin-right: 24px;
1637
- margin-right: var(--size-24);
1638
- margin-left: 0;
1639
- margin-left: initial;
1640
- }
1641
- .np-decision .np-text-title-subsection {
1642
- margin-bottom: 0;
1643
- }
1644
1601
  .np-decision__tile--small .np-text-title-subsection {
1645
1602
  font-size: 1rem;
1646
1603
  font-size: var(--font-size-16);
1647
1604
  line-height: 1.2;
1648
1605
  line-height: var(--line-height-title);
1649
- margin-bottom: 0;
1650
- }
1651
- .np-decision.np-decision--grid .np-decision__tile {
1652
- margin-left: 0;
1653
- margin-bottom: 24px !important;
1654
- margin-bottom: var(--size-24) !important;
1655
- }
1656
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile {
1657
- margin-right: 0;
1658
- margin-left: 0;
1659
- margin-left: initial;
1660
- }
1661
- .np-decision.np-decision--grid .np-decision__tile:not(:last-of-type) {
1662
- margin-right: 24px;
1663
- margin-right: var(--size-24);
1664
1606
  }
1665
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile:not(:last-of-type) {
1666
- margin-left: 24px;
1667
- margin-left: var(--size-24);
1668
- margin-right: 0;
1669
- margin-right: initial;
1670
- }
1671
- .np-decision.np-decision--grid .np-size-swapper {
1672
- margin-right: calc(0 - 24px);
1673
- margin-right: calc(0 - var(--size-24));
1674
- }
1675
- [dir="rtl"] .np-decision.np-decision--grid .np-size-swapper {
1676
- margin-left: calc(0 - 24px);
1677
- margin-left: calc(0 - var(--size-24));
1678
- margin-right: 0;
1679
- margin-right: initial;
1680
- }
1681
- .np-decision.np-decision--grid.np-decision--small .np-size-swapper {
1682
- margin-right: calc(0 - 16px);
1683
- margin-right: calc(0 - var(--size-16));
1607
+ .np-decision:not(.flex-column) {
1608
+ gap: 24px;
1609
+ gap: var(--size-24);
1684
1610
  }
1685
- [dir="rtl"] .np-decision.np-decision--grid.np-decision--small .np-size-swapper {
1686
- margin-left: calc(0 - 16px);
1687
- margin-left: calc(0 - var(--size-16));
1688
- margin-right: 0;
1689
- margin-right: initial;
1611
+ .np-decision:not(.flex-column).np-decision--small {
1612
+ gap: 16px;
1613
+ gap: var(--size-16);
1690
1614
  }
1691
1615
  .tw-definition-list__item dd {
1692
1616
  word-break: break-all;
@@ -1,93 +1,17 @@
1
1
  .np-decision .decision {
2
2
  display: flex;
3
3
  }
4
- .np-decision__tile--small + .np-decision__tile--small {
5
- margin-left: 16px;
6
- margin-left: var(--size-16);
7
- }
8
- [dir="rtl"] .np-decision__tile--small + .np-decision__tile--small {
9
- margin-right: 16px;
10
- margin-right: var(--size-16);
11
- margin-left: 0;
12
- margin-left: initial;
13
- }
14
- .np-decision.np-decision--grid .np-decision__tile--small {
15
- margin-left: 0;
16
- margin-bottom: 16px !important;
17
- margin-bottom: var(--size-16) !important;
18
- }
19
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile--small {
20
- margin-right: 0;
21
- margin-left: 0;
22
- margin-left: initial;
23
- }
24
- .np-decision.np-decision--grid .np-decision__tile--small:not(:last-of-type) {
25
- margin-right: 16px;
26
- margin-right: var(--size-16);
27
- }
28
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile--small:not(:last-of-type) {
29
- margin-left: 16px;
30
- margin-left: var(--size-16);
31
- margin-right: 0;
32
- margin-right: initial;
33
- }
34
- .np-decision__tile + .np-decision__tile {
35
- margin-left: 24px;
36
- margin-left: var(--size-24);
37
- }
38
- [dir="rtl"] .np-decision__tile + .np-decision__tile {
39
- margin-right: 24px;
40
- margin-right: var(--size-24);
41
- margin-left: 0;
42
- margin-left: initial;
43
- }
44
- .np-decision .np-text-title-subsection {
45
- margin-bottom: 0;
46
- }
47
4
  .np-decision__tile--small .np-text-title-subsection {
48
5
  font-size: 1rem;
49
6
  font-size: var(--font-size-16);
50
7
  line-height: 1.2;
51
8
  line-height: var(--line-height-title);
52
- margin-bottom: 0;
53
- }
54
- .np-decision.np-decision--grid .np-decision__tile {
55
- margin-left: 0;
56
- margin-bottom: 24px !important;
57
- margin-bottom: var(--size-24) !important;
58
- }
59
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile {
60
- margin-right: 0;
61
- margin-left: 0;
62
- margin-left: initial;
63
- }
64
- .np-decision.np-decision--grid .np-decision__tile:not(:last-of-type) {
65
- margin-right: 24px;
66
- margin-right: var(--size-24);
67
- }
68
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile:not(:last-of-type) {
69
- margin-left: 24px;
70
- margin-left: var(--size-24);
71
- margin-right: 0;
72
- margin-right: initial;
73
- }
74
- .np-decision.np-decision--grid .np-size-swapper {
75
- margin-right: calc(0 - 24px);
76
- margin-right: calc(0 - var(--size-24));
77
- }
78
- [dir="rtl"] .np-decision.np-decision--grid .np-size-swapper {
79
- margin-left: calc(0 - 24px);
80
- margin-left: calc(0 - var(--size-24));
81
- margin-right: 0;
82
- margin-right: initial;
83
9
  }
84
- .np-decision.np-decision--grid.np-decision--small .np-size-swapper {
85
- margin-right: calc(0 - 16px);
86
- margin-right: calc(0 - var(--size-16));
10
+ .np-decision:not(.flex-column) {
11
+ gap: 24px;
12
+ gap: var(--size-24);
87
13
  }
88
- [dir="rtl"] .np-decision.np-decision--grid.np-decision--small .np-size-swapper {
89
- margin-left: calc(0 - 16px);
90
- margin-left: calc(0 - var(--size-16));
91
- margin-right: 0;
92
- margin-right: initial;
14
+ .np-decision:not(.flex-column).np-decision--small {
15
+ gap: 16px;
16
+ gap: var(--size-16);
93
17
  }
@@ -1598,95 +1598,19 @@ button.np-option {
1598
1598
  .np-decision .decision {
1599
1599
  display: flex;
1600
1600
  }
1601
- .np-decision__tile--small + .np-decision__tile--small {
1602
- margin-left: 16px;
1603
- margin-left: var(--size-16);
1604
- }
1605
- [dir="rtl"] .np-decision__tile--small + .np-decision__tile--small {
1606
- margin-right: 16px;
1607
- margin-right: var(--size-16);
1608
- margin-left: 0;
1609
- margin-left: initial;
1610
- }
1611
- .np-decision.np-decision--grid .np-decision__tile--small {
1612
- margin-left: 0;
1613
- margin-bottom: 16px !important;
1614
- margin-bottom: var(--size-16) !important;
1615
- }
1616
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile--small {
1617
- margin-right: 0;
1618
- margin-left: 0;
1619
- margin-left: initial;
1620
- }
1621
- .np-decision.np-decision--grid .np-decision__tile--small:not(:last-of-type) {
1622
- margin-right: 16px;
1623
- margin-right: var(--size-16);
1624
- }
1625
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile--small:not(:last-of-type) {
1626
- margin-left: 16px;
1627
- margin-left: var(--size-16);
1628
- margin-right: 0;
1629
- margin-right: initial;
1630
- }
1631
- .np-decision__tile + .np-decision__tile {
1632
- margin-left: 24px;
1633
- margin-left: var(--size-24);
1634
- }
1635
- [dir="rtl"] .np-decision__tile + .np-decision__tile {
1636
- margin-right: 24px;
1637
- margin-right: var(--size-24);
1638
- margin-left: 0;
1639
- margin-left: initial;
1640
- }
1641
- .np-decision .np-text-title-subsection {
1642
- margin-bottom: 0;
1643
- }
1644
1601
  .np-decision__tile--small .np-text-title-subsection {
1645
1602
  font-size: 1rem;
1646
1603
  font-size: var(--font-size-16);
1647
1604
  line-height: 1.2;
1648
1605
  line-height: var(--line-height-title);
1649
- margin-bottom: 0;
1650
- }
1651
- .np-decision.np-decision--grid .np-decision__tile {
1652
- margin-left: 0;
1653
- margin-bottom: 24px !important;
1654
- margin-bottom: var(--size-24) !important;
1655
- }
1656
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile {
1657
- margin-right: 0;
1658
- margin-left: 0;
1659
- margin-left: initial;
1660
- }
1661
- .np-decision.np-decision--grid .np-decision__tile:not(:last-of-type) {
1662
- margin-right: 24px;
1663
- margin-right: var(--size-24);
1664
1606
  }
1665
- [dir="rtl"] .np-decision.np-decision--grid .np-decision__tile:not(:last-of-type) {
1666
- margin-left: 24px;
1667
- margin-left: var(--size-24);
1668
- margin-right: 0;
1669
- margin-right: initial;
1670
- }
1671
- .np-decision.np-decision--grid .np-size-swapper {
1672
- margin-right: calc(0 - 24px);
1673
- margin-right: calc(0 - var(--size-24));
1674
- }
1675
- [dir="rtl"] .np-decision.np-decision--grid .np-size-swapper {
1676
- margin-left: calc(0 - 24px);
1677
- margin-left: calc(0 - var(--size-24));
1678
- margin-right: 0;
1679
- margin-right: initial;
1680
- }
1681
- .np-decision.np-decision--grid.np-decision--small .np-size-swapper {
1682
- margin-right: calc(0 - 16px);
1683
- margin-right: calc(0 - var(--size-16));
1607
+ .np-decision:not(.flex-column) {
1608
+ gap: 24px;
1609
+ gap: var(--size-24);
1684
1610
  }
1685
- [dir="rtl"] .np-decision.np-decision--grid.np-decision--small .np-size-swapper {
1686
- margin-left: calc(0 - 16px);
1687
- margin-left: calc(0 - var(--size-16));
1688
- margin-right: 0;
1689
- margin-right: initial;
1611
+ .np-decision:not(.flex-column).np-decision--small {
1612
+ gap: 16px;
1613
+ gap: var(--size-16);
1690
1614
  }
1691
1615
  .tw-definition-list__item dd {
1692
1616
  word-break: break-all;
@@ -8,7 +8,7 @@ export type ActionButtonProps = {
8
8
  text?: string;
9
9
  } & ButtonHTMLAttributes<HTMLButtonElement>;
10
10
  declare const ActionButton: import("react").ForwardRefExoticComponent<{
11
- priority?: "primary" | "secondary" | undefined;
11
+ priority?: "secondary" | "primary" | undefined;
12
12
  /**
13
13
  * @deprecated use `children` instead
14
14
  */
@@ -9,6 +9,6 @@ declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTM
9
9
  * Default value: `div`
10
10
  */
11
11
  as?: "div" | "p" | "span" | undefined;
12
- } & import("react").RefAttributes<HTMLSpanElement | HTMLDivElement | HTMLParagraphElement>>;
12
+ } & import("react").RefAttributes<HTMLSpanElement | HTMLParagraphElement | HTMLDivElement>>;
13
13
  export default Body;
14
14
  //# sourceMappingURL=Body.d.ts.map
@@ -8,7 +8,6 @@ export interface CardProps {
8
8
  details: React.ReactNode;
9
9
  onClick?: any;
10
10
  icon?: React.ReactNode;
11
- badgeContentIcon?: React.ReactNode;
12
11
  children?: React.ReactNode;
13
12
  id?: string;
14
13
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/card/Card.js"],"names":[],"mappings":";AAUA,kGAoDG"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/card/Card.js"],"names":[],"mappings":";AAUA,kGAkDG"}
@@ -3,7 +3,6 @@ import { LinkProps } from '../commonProps';
3
3
  export interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'content'> {
4
4
  'aria-label'?: string;
5
5
  media?: ReactNode;
6
- badgeContentIcon?: ReactNode;
7
6
  name?: string;
8
7
  htmlFor?: string;
9
8
  title: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/common/Option/Option.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAc,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,MAA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ly }: {
3
- id: any;
4
- value: any;
5
- name: any;
6
- checked: any;
7
- onChange: any;
8
- disabled: any;
9
- readOnly: any;
10
- }): import("react").JSX.Element;
11
- declare namespace RadioButton {
12
- namespace propTypes {
13
- const id: any;
14
- const name: any;
15
- const checked: any;
16
- const onChange: any;
17
- const disabled: any;
18
- const value: any;
19
- const readOnly: any;
20
- }
21
- namespace defaultProps {
22
- const checked_1: boolean;
23
- export { checked_1 as checked };
24
- export function onChange_1(): void;
25
- export { onChange_1 as onChange };
26
- const disabled_1: boolean;
27
- export { disabled_1 as disabled };
28
- const id_1: null;
29
- export { id_1 as id };
30
- const value_1: string;
31
- export { value_1 as value };
32
- const readOnly_1: boolean;
33
- export { readOnly_1 as readOnly };
34
- }
1
+ /// <reference types="react" />
2
+ export interface RadioButtonProps<T extends string | number = string> {
3
+ id?: string;
4
+ name: string;
5
+ checked?: boolean;
6
+ onChange?: (value: T | '') => void;
7
+ disabled?: boolean;
8
+ value?: T | '';
9
+ readOnly?: boolean;
35
10
  }
11
+ export default function RadioButton<T extends string | number = string>({ id, value, name, checked, onChange, disabled, readOnly, }: RadioButtonProps<T>): import("react").JSX.Element;
36
12
  //# sourceMappingURL=RadioButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../../src/common/RadioButton/RadioButton.js"],"names":[],"mappings":";AAGA;;;;;;;;gCAgBC;;;;;;;;;;;;;;QAcW,mCAAQ"}
1
+ {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../../src/common/RadioButton/RadioButton.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM;IAClE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EACtE,EAAE,EACF,KAAU,EACV,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE,gBAAgB,CAAC,CAAC,CAAC,+BAsBrB"}
@@ -1,2 +1,2 @@
1
- export { default } from "./RadioButton";
1
+ export { default } from './RadioButton';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/RadioButton/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/RadioButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -13,7 +13,7 @@ export type AriaLabelProperty = {
13
13
  };
14
14
  export type LinkProps = {
15
15
  href: string;
16
- target?: '_blank' | '_self' | '_parent' | '_top';
16
+ target?: React.HTMLAttributeAnchorTarget;
17
17
  onClick?: React.MouseEventHandler<HTMLElement>;
18
18
  };
19
19
  export type Heading = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
@@ -1 +1 @@
1
- {"version":3,"file":"commonProps.d.ts","sourceRoot":"","sources":["../../../src/common/commonProps.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"commonProps.d.ts","sourceRoot":"","sources":["../../../src/common/commonProps.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC;IACzC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC"}
@@ -16,7 +16,7 @@ declare const Panel: import("react").ForwardRefExoticComponent<{
16
16
  altAxis?: boolean | undefined;
17
17
  open?: boolean | undefined;
18
18
  onClose?: ((event: Event | SyntheticEvent) => void) | undefined;
19
- position?: "left" | "right" | "bottom" | "top" | undefined;
19
+ position?: "top" | "bottom" | "left" | "right" | undefined;
20
20
  anchorRef: RefObject<Element>;
21
21
  anchorWidth?: boolean | undefined;
22
22
  } & {
@@ -5,7 +5,7 @@ declare const ResponsivePanel: import("react").ForwardRefExoticComponent<{
5
5
  altAxis?: boolean | undefined;
6
6
  open?: boolean | undefined;
7
7
  onClose?: ((event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
8
- position?: "left" | "right" | "bottom" | "top" | undefined;
8
+ position?: "top" | "bottom" | "left" | "right" | undefined;
9
9
  anchorRef: import("react").RefObject<Element>;
10
10
  anchorWidth?: boolean | undefined;
11
11
  } & {
@@ -1,3 +1,3 @@
1
- import DateInput from './DateInput';
2
- export default DateInput;
1
+ export { default } from './DateInput';
2
+ export type { DateInputProps } from './DateInput';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dateInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dateInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -11,6 +11,7 @@ export interface DateLookupProps {
11
11
  size?: DateLookupSize;
12
12
  placeholder?: string;
13
13
  label?: string;
14
+ "aria-labelledby"?: string;
14
15
  monthFormat?: DateLookupMonthFormat;
15
16
  disabled?: boolean;
16
17
  onChange: (...args: any[])=>any;
@@ -1 +1 @@
1
- {"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.js"],"names":[],"mappings":";AAoBA;IAoBE;;;;;;aAqBC;IApCD,wBAaC;IAjBD,wCAAsB;IAEtB,yCAAuB;IAIrB;;;;;;;;;;MAUC;IA0BH,6CAMC;IAFC,uCAAyE;IAI3E,6BAGC;IAED,iBAOE;IAEF,oBAME;IAEF,kBAME;IAEF,oCA6CE;IAEF,wEAmBE;IAEF,+DAOE;IAEF,gCAIE;IAEF,yBAA+C;IAE/C,2BAAmD;IAEnD,0BAAiD;IAEjD,sDAME;IAEF;;;eAEE;IAEF,+CA8BE;IAEF,wBAGE;IAEF,sCA0BC;CACF"}
1
+ {"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.js"],"names":[],"mappings":";AAoBA;IAoBE;;;;;;aAqBC;IApCD,wBAaC;IAjBD,wCAAsB;IAEtB,yCAAuB;IAIrB;;;;;;;;;;MAUC;IA0BH,6CAMC;IAFC,uCAAyE;IAI3E,6BAGC;IAED,iBAOE;IAEF,oBAME;IAEF,kBAME;IAEF,oCA6CE;IAEF,wEAmBE;IAEF,+DAOE;IAEF,gCAIE;IAEF,yBAA+C;IAE/C,2BAAmD;IAEnD,0BAAiD;IAEjD,sDAME;IAEF;;;eAEE;IAEF,+CA8BE;IAEF,wBAGE;IAEF,sCAoCC;CACF"}
@@ -1,52 +1,39 @@
1
- import * as React from 'react';
2
-
3
- export interface DecisionOptions {
4
- description?: React.ReactNode;
5
- disabled?: boolean;
6
- href?: string;
7
- target?: "_self" | "_blank" | "_parent" | "_top";
8
- media?: {
9
- block: React.ReactNode;
10
- list: React.ReactNode;
11
- };
12
- onClick?: (...args: any[])=>any;
13
- title: React.ReactNode;
14
- }
15
-
16
- export type DecisionPresentation = "LIST" | "LIST_BLOCK" | "LIST_BLOCK_GRID";
17
-
18
- export type DecisionSize = "sm" | "md";
19
-
20
- export type DecisionType = "NAVIGATION";
21
-
22
- export interface DecisionProps {
23
- /**
24
- * A list of elements to be rendered
25
- */
26
- options: DecisionOptions[];
27
- /**
28
- * Handles the display mode of the component
29
- */
30
- presentation?: DecisionPresentation;
31
- /**
32
- * Size currently affects only Tile dimension
33
- */
34
- size?: DecisionSize;
35
- /**
36
- * Decide which kind of element type needs to be rendered ex: Navigation Options or in the future Radio or Checkbox Options
37
- */
38
- type?: DecisionType;
39
- /**
40
- * Display media in a circle in list presentation
41
- */
42
- showMediaCircleInList?: boolean;
43
- /**
44
- * Sets navigation options to be aligned with the parent container
45
- */
46
- isContainerAligned?: boolean;
47
- }
48
-
49
- declare const Decision: React.FC<DecisionProps>;
50
-
51
- export default Decision;
52
-
1
+ /// <reference types="react" />
2
+ import { SizeSmall, SizeMedium } from '../common';
3
+ interface DecisionOption {
4
+ description?: React.ReactNode;
5
+ disabled?: boolean;
6
+ href?: string;
7
+ target?: React.HTMLAttributeAnchorTarget;
8
+ media: {
9
+ block: React.ReactNode;
10
+ list: React.ReactNode;
11
+ };
12
+ onClick?: React.MouseEventHandler<HTMLElement>;
13
+ title: React.ReactNode;
14
+ }
15
+ export declare enum DecisionPresentation {
16
+ LIST = "LIST",
17
+ LIST_BLOCK = "LIST_BLOCK",
18
+ LIST_BLOCK_GRID = "LIST_BLOCK_GRID"
19
+ }
20
+ export declare enum DecisionType {
21
+ NAVIGATION = "NAVIGATION"
22
+ }
23
+ export interface DecisionProps {
24
+ /** A list of elements to be rendered */
25
+ options: DecisionOption[];
26
+ /** Handles the display mode of the component */
27
+ presentation?: `${DecisionPresentation}`;
28
+ /** Size currently affects only Tile dimension */
29
+ size?: SizeSmall | SizeMedium;
30
+ /** Decide which kind of element type needs to be rendered ex: Navigation Options or in the future Radio or Checkbox Options */
31
+ type?: `${DecisionType}`;
32
+ /** Display media in a circle in list presentation */
33
+ showMediaCircleInList?: boolean;
34
+ /** Sets navigation options to be aligned with the parent container */
35
+ isContainerAligned?: boolean;
36
+ }
37
+ declare const Decision: ({ options, presentation, size, type, showMediaCircleInList, isContainerAligned, }: DecisionProps) => import("react").JSX.Element | null;
38
+ export default Decision;
39
+ //# sourceMappingURL=Decision.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Decision.d.ts","sourceRoot":"","sources":["../../../src/decision/Decision.js"],"names":[],"mappings":";AAUA;;;;;;;QAiGC"}
1
+ {"version":3,"file":"Decision.d.ts","sourceRoot":"","sources":["../../../src/decision/Decision.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAoB,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAKpE,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC;IACzC,KAAK,EAAE;QACL,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC/C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,eAAe,oBAAoB;CACpC;AAED,oBAAY,YAAY;IACtB,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,iDAAiD;IACjD,YAAY,CAAC,EAAE,GAAG,oBAAoB,EAAE,CAAC;IACzC,iDAAiD;IACjD,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9B,+HAA+H;IAC/H,IAAI,CAAC,EAAE,GAAG,YAAY,EAAE,CAAC;IAEzB,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,QAAQ,sFAOX,aAAa,uCA4Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,2 @@
1
- export { default } from "./Decision";
2
- export { Presentation as DecisionPresentation, Type as DecisionType } from "./decisionEnums";
1
+ export { default, DecisionPresentation, DecisionType } from './Decision';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decision/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decision/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
@@ -22,7 +22,7 @@ export { Dimmer };
22
22
  declare const _default: (props: CommonProps & {
23
23
  children?: ReactNode;
24
24
  disableClickToClose?: boolean | undefined;
25
- contentPosition?: "center" | "bottom" | "top" | undefined;
25
+ contentPosition?: "top" | "bottom" | "center" | undefined;
26
26
  fadeContentOnEnter?: boolean | undefined;
27
27
  fadeContentOnExit?: boolean | undefined;
28
28
  open?: boolean | undefined;
@@ -1,13 +1,18 @@
1
1
  /**
2
2
  * Types
3
3
  */
4
+ export type { DecisionProps } from './decision/Decision';
4
5
  export type { InputProps } from './inputs/Input';
6
+ export type { DateInputProps } from './dateInput';
5
7
  export type { InputWithDisplayFormatProps } from './inputWithDisplayFormat';
6
8
  export type { InputGroupProps } from './inputs/InputGroup';
7
9
  export type { SearchInputProps } from './inputs/SearchInput';
8
10
  export type { SelectInputGroupItem, SelectInputItem, SelectInputOptionContentProps, SelectInputOptionItem, SelectInputProps, SelectInputSeparatorItem, SelectInputTriggerButtonProps, } from './inputs/SelectInput';
9
11
  export type { TextAreaProps } from './inputs/TextArea';
10
12
  export type { PhoneNumberInputProps } from './phoneNumberInput/PhoneNumberInput';
13
+ export type { RadioProps } from './radio';
14
+ export type { RadioGroupProps } from './radioGroup';
15
+ export type { RadioOptionProps } from './radioOption';
11
16
  export type { SnackbarProps } from './snackbar/Snackbar';
12
17
  export type { SnackbarContextType } from './snackbar/SnackbarContext';
13
18
  export type { TextareaWithDisplayFormatProps } from './textareaWithDisplayFormat';