@lumx/react 3.3.1-alpha.0 → 3.3.1

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 (117) hide show
  1. package/_internal/ClickAwayProvider.js.map +1 -1
  2. package/_internal/types.d.ts +0 -2
  3. package/index.d.ts +2 -0
  4. package/index.js +347 -75
  5. package/index.js.map +1 -1
  6. package/package.json +23 -19
  7. package/src/components/autocomplete/Autocomplete.test.tsx +55 -142
  8. package/src/components/autocomplete/AutocompleteMultiple.test.tsx +37 -75
  9. package/src/components/autocomplete/__mockData__/index.ts +6 -1
  10. package/src/components/badge/Badge.test.tsx +20 -64
  11. package/src/components/button/Button.test.tsx +44 -121
  12. package/src/components/button/ButtonGroup.test.tsx +16 -39
  13. package/src/components/button/IconButton.stories.tsx +7 -0
  14. package/src/components/button/IconButton.test.tsx +37 -78
  15. package/src/components/button/IconButton.tsx +8 -1
  16. package/src/components/checkbox/Checkbox.test.tsx +62 -67
  17. package/src/components/chip/Chip.test.tsx +89 -139
  18. package/src/components/chip/ChipGroup.test.tsx +27 -10
  19. package/src/components/date-picker/DatePicker.test.tsx +15 -23
  20. package/src/components/date-picker/DatePickerControlled.test.tsx +24 -20
  21. package/src/components/date-picker/DatePickerField.test.tsx +43 -27
  22. package/src/components/dialog/Dialog.test.tsx +36 -35
  23. package/src/components/divider/Divider.test.tsx +23 -69
  24. package/src/components/dropdown/Dropdown.test.tsx +30 -61
  25. package/src/components/expansion-panel/ExpansionPanel.test.tsx +12 -8
  26. package/src/components/flag/Flag.test.tsx +28 -53
  27. package/src/components/generic-block/GenericBlock.test.tsx +93 -89
  28. package/src/components/grid-column/GridColumn.stories.tsx +3 -3
  29. package/src/components/icon/Icon.test.tsx +80 -64
  30. package/src/components/index.ts +0 -2
  31. package/src/components/inline-list/InlineList.test.tsx +30 -17
  32. package/src/components/input-helper/InputHelper.test.tsx +21 -81
  33. package/src/components/input-label/InputLabel.test.tsx +19 -61
  34. package/src/components/lightbox/Lightbox.test.tsx +3 -2
  35. package/src/components/link/Link.test.tsx +47 -31
  36. package/src/components/link-preview/LinkPreview.test.tsx +51 -51
  37. package/src/components/message/Message.test.tsx +31 -52
  38. package/src/components/mosaic/Mosaic.test.tsx +56 -72
  39. package/src/components/notification/Notification.test.tsx +51 -82
  40. package/src/components/popover/Popover.tsx +7 -9
  41. package/src/components/progress-tracker/ProgressTracker.test.tsx +20 -33
  42. package/src/components/progress-tracker/ProgressTrackerProvider.test.tsx +61 -36
  43. package/src/components/progress-tracker/ProgressTrackerStep.test.tsx +19 -109
  44. package/src/components/progress-tracker/ProgressTrackerStepPanel.test.tsx +21 -58
  45. package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +1 -1
  46. package/src/components/radio-button/RadioButton.test.tsx +78 -92
  47. package/src/components/radio-button/RadioGroup.test.tsx +13 -59
  48. package/src/components/select/Select.test.tsx +115 -284
  49. package/src/components/select/SelectMultiple.stories.tsx +105 -2
  50. package/src/components/select/SelectMultiple.test.tsx +126 -322
  51. package/src/components/select/WithSelectContext.tsx +10 -4
  52. package/src/components/side-navigation/SideNavigation.test.tsx +22 -35
  53. package/src/components/side-navigation/SideNavigationItem.test.tsx +72 -139
  54. package/src/components/switch/Switch.test.tsx +70 -149
  55. package/src/components/table/Table.test.tsx +2 -0
  56. package/src/components/table/TableBody.test.tsx +18 -8
  57. package/src/components/table/TableCell.test.tsx +34 -9
  58. package/src/components/table/TableHeader.test.tsx +18 -8
  59. package/src/components/table/TableRow.test.tsx +28 -8
  60. package/src/components/tabs/Tab.test.tsx +27 -96
  61. package/src/components/tabs/TabList.test.tsx +21 -56
  62. package/src/components/tabs/TabPanel.test.tsx +20 -55
  63. package/src/components/tabs/TabPanel.tsx +1 -1
  64. package/src/components/tabs/TabProvider.test.tsx +158 -37
  65. package/src/components/tabs/test-utils.ts +39 -0
  66. package/src/components/text-field/TextField.stories.tsx +14 -5
  67. package/src/components/text-field/TextField.test.tsx +54 -8
  68. package/src/components/text-field/TextField.tsx +49 -5
  69. package/src/components/tooltip/Tooltip.test.tsx +134 -75
  70. package/src/components/tooltip/useInjectTooltipRef.tsx +9 -2
  71. package/src/components/uploader/Uploader.test.tsx +60 -48
  72. package/src/components/user-block/UserBlock.test.tsx +69 -13
  73. package/src/hooks/useFocusTrap.ts +2 -2
  74. package/src/testing/utils/commonTestsSuiteRTL.ts +18 -8
  75. package/src/testing/utils/index.ts +0 -1
  76. package/src/utils/flattenChildren.ts +5 -0
  77. package/src/components/autocomplete/__snapshots__/Autocomplete.test.tsx.snap +0 -213
  78. package/src/components/autocomplete/__snapshots__/AutocompleteMultiple.test.tsx.snap +0 -88
  79. package/src/components/badge/__snapshots__/Badge.test.tsx.snap +0 -11
  80. package/src/components/button/ButtonRoot.test.tsx +0 -203
  81. package/src/components/button/__snapshots__/Button.test.tsx.snap +0 -96
  82. package/src/components/button/__snapshots__/ButtonGroup.test.tsx.snap +0 -22
  83. package/src/components/button/__snapshots__/ButtonRoot.test.tsx.snap +0 -160
  84. package/src/components/button/__snapshots__/IconButton.test.tsx.snap +0 -83
  85. package/src/components/checkbox/__snapshots__/Checkbox.test.tsx.snap +0 -141
  86. package/src/components/chip/__snapshots__/Chip.test.tsx.snap +0 -12
  87. package/src/components/chip/__snapshots__/ChipGroup.test.tsx.snap +0 -29
  88. package/src/components/date-picker/__snapshots__/DatePicker.test.tsx.snap +0 -22
  89. package/src/components/date-picker/__snapshots__/DatePickerControlled.test.tsx.snap +0 -597
  90. package/src/components/date-picker/__snapshots__/DatePickerField.test.tsx.snap +0 -43
  91. package/src/components/divider/__snapshots__/Divider.test.tsx.snap +0 -9
  92. package/src/components/dropdown/__snapshots__/Dropdown.test.tsx.snap +0 -35
  93. package/src/components/icon/__snapshots__/Icon.test.tsx.snap +0 -49
  94. package/src/components/input-helper/__snapshots__/InputHelper.test.tsx.snap +0 -9
  95. package/src/components/input-label/__snapshots__/InputLabel.test.tsx.snap +0 -10
  96. package/src/components/link/__snapshots__/Link.test.tsx.snap +0 -29
  97. package/src/components/message/__snapshots__/Message.test.tsx.snap +0 -15
  98. package/src/components/notification/__snapshots__/Notification.test.tsx.snap +0 -34
  99. package/src/components/progress-tracker/__snapshots__/ProgressTracker.test.tsx.snap +0 -41
  100. package/src/components/progress-tracker/__snapshots__/ProgressTrackerStep.test.tsx.snap +0 -141
  101. package/src/components/progress-tracker/__snapshots__/ProgressTrackerStepPanel.test.tsx.snap +0 -25
  102. package/src/components/radio-button/__snapshots__/RadioButton.test.tsx.snap +0 -113
  103. package/src/components/radio-button/__snapshots__/RadioGroup.test.tsx.snap +0 -26
  104. package/src/components/select/__snapshots__/Select.test.tsx.snap +0 -43
  105. package/src/components/select/__snapshots__/SelectMultiple.test.tsx.snap +0 -87
  106. package/src/components/side-navigation/__snapshots__/SideNavigation.test.tsx.snap +0 -7
  107. package/src/components/side-navigation/__snapshots__/SideNavigationItem.test.tsx.snap +0 -30
  108. package/src/components/switch/__snapshots__/Switch.test.tsx.snap +0 -179
  109. package/src/components/tabs/__snapshots__/Tab.test.tsx.snap +0 -62
  110. package/src/components/tabs/__snapshots__/TabList.test.tsx.snap +0 -22
  111. package/src/components/tabs/__snapshots__/TabPanel.test.tsx.snap +0 -25
  112. package/src/components/tabs/test.mocks.ts +0 -33
  113. package/src/components/text-field/__snapshots__/TextField.test.tsx.snap +0 -42
  114. package/src/components/tooltip/__snapshots__/Tooltip.test.tsx.snap +0 -233
  115. package/src/components/uploader/__snapshots__/Uploader.test.tsx.snap +0 -14
  116. package/src/testing/utils/commonTestsSuite.ts +0 -71
  117. package/src/utils/flattenChildren.test.tsx +0 -58
@@ -1,35 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<Dropdown> Snapshots and structure should render correctly 1`] = `
4
- <Popover
5
- anchorRef={
6
- {
7
- "current": null,
8
- }
9
- }
10
- className="lumx-dropdown"
11
- closeOnClickAway={true}
12
- closeOnEscape={true}
13
- elevation={0}
14
- fitToAnchorWidth={true}
15
- fitWithinViewportHeight={true}
16
- focusAnchorOnClose={true}
17
- focusElement={
18
- {
19
- "current": null,
20
- }
21
- }
22
- isOpen={true}
23
- placement="bottom-start"
24
- usePortal={true}
25
- zIndex={9999}
26
- >
27
- <div
28
- className="lumx-dropdown__menu"
29
- >
30
- <div>
31
- This is the content of the dropdown
32
- </div>
33
- </div>
34
- </Popover>
35
- `;
@@ -1,49 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<Icon> Snapshots and structure should render color & color variant 1`] = `
4
- <i
5
- className="lumx-icon lumx-icon--color-primary lumx-icon--color-variant-D1 lumx-icon--no-shape lumx-icon--path"
6
- >
7
- <svg
8
- aria-hidden="true"
9
- height="1em"
10
- preserveAspectRatio="xMidYMid meet"
11
- style={
12
- {
13
- "verticalAlign": "-0.125em",
14
- }
15
- }
16
- viewBox="0 0 24 24"
17
- width="1em"
18
- >
19
- <path
20
- d="mdiPlus"
21
- fill="currentColor"
22
- />
23
- </svg>
24
- </i>
25
- `;
26
-
27
- exports[`<Icon> Snapshots and structure should render correctly 1`] = `
28
- <i
29
- className="lumx-icon lumx-icon--no-shape lumx-icon--path"
30
- >
31
- <svg
32
- aria-hidden="true"
33
- height="1em"
34
- preserveAspectRatio="xMidYMid meet"
35
- style={
36
- {
37
- "verticalAlign": "-0.125em",
38
- }
39
- }
40
- viewBox="0 0 24 24"
41
- width="1em"
42
- >
43
- <path
44
- d="mdiPlus"
45
- fill="currentColor"
46
- />
47
- </svg>
48
- </i>
49
- `;
@@ -1,9 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<InputHelper> Snapshots and structure should render defaults 1`] = `
4
- <span
5
- className="lumx-input-helper lumx-input-helper--theme-light"
6
- >
7
- The helper text
8
- </span>
9
- `;
@@ -1,10 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<InputLabel> Snapshots and structure should render defaults 1`] = `
4
- <label
5
- className="lumx-input-label lumx-input-label--theme-light"
6
- htmlFor="id"
7
- >
8
- The Label text
9
- </label>
10
- `;
@@ -1,29 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<Link> Snapshots and structure should render a button if href attribute is missing 1`] = `
4
- <button
5
- className="lumx-link"
6
- type="button"
7
- />
8
- `;
9
-
10
- exports[`<Link> Snapshots and structure should render color & color variant 1`] = `
11
- <a
12
- className="lumx-link lumx-link--color-primary lumx-link--color-variant-D1"
13
- href="https://google.com"
14
- />
15
- `;
16
-
17
- exports[`<Link> Snapshots and structure should render correctly 1`] = `
18
- <a
19
- className="lumx-link"
20
- href="https://google.com"
21
- />
22
- `;
23
-
24
- exports[`<Link> Snapshots and structure should render typography 1`] = `
25
- <a
26
- className="lumx-link"
27
- href="https://google.com"
28
- />
29
- `;
@@ -1,15 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<Message> Snapshots and structure should render correctly 1`] = `
4
- <div
5
- className="lumx-message"
6
- >
7
- <div
8
- className="lumx-message__text"
9
- >
10
- <span>
11
- Lorem Ipsum
12
- </span>
13
- </div>
14
- </div>
15
- `;
@@ -1,34 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<Notification> Snapshots and structure should render defaults 1`] = `
4
- <Portal
5
- containerInfo={<body />}
6
- >
7
- <div
8
- className="lumx-notification lumx-notification--color-dark"
9
- onClick={[Function]}
10
- role="alert"
11
- style={
12
- {
13
- "zIndex": 9999,
14
- }
15
- }
16
- >
17
- <div
18
- className="lumx-notification__icon"
19
- >
20
- <Icon
21
- icon="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
22
- size="s"
23
- />
24
- </div>
25
- <div
26
- className="lumx-notification__content"
27
- >
28
- Info
29
- </div>
30
- </div>
31
- </Portal>
32
- `;
33
-
34
- exports[`<Notification> Snapshots and structure should render nothing since the notification is closed 1`] = `""`;
@@ -1,41 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<ProgressTracker> Snapshots and structure should render correctly 1`] = `
4
- <div
5
- className="lumx-progress-tracker"
6
- >
7
- <div
8
- aria-label="Steps"
9
- className="lumx-progress-tracker__steps"
10
- role="tablist"
11
- >
12
- <ProgressTrackerStep
13
- key="0"
14
- label="Step 0"
15
- />
16
- <ProgressTrackerStep
17
- key="1"
18
- label="Step 1"
19
- />
20
- </div>
21
- <div
22
- className="lumx-progress-tracker__background-bar"
23
- style={
24
- {
25
- "left": "25%",
26
- "right": "25%",
27
- }
28
- }
29
- />
30
- <div
31
- className="lumx-progress-tracker__foreground-bar"
32
- style={
33
- {
34
- "left": "25%",
35
- "right": "25%",
36
- "transform": "scaleX(0)",
37
- }
38
- }
39
- />
40
- </div>
41
- `;
@@ -1,141 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<ProgressTrackerStep> Snapshots and structure should render 1`] = `
4
- <button
5
- aria-controls="tab-panel-1"
6
- aria-selected={false}
7
- className="lumx-progress-tracker-step lumx-progress-tracker-step--is-clickable"
8
- id="tab-1"
9
- onClick={[Function]}
10
- onFocus={[Function]}
11
- onKeyPress={[Function]}
12
- role="tab"
13
- tabIndex={-1}
14
- type="button"
15
- >
16
- <Icon
17
- className="lumx-progress-tracker-step__state"
18
- icon="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
19
- size="s"
20
- />
21
- <InputLabel
22
- className="lumx-progress-tracker-step__label"
23
- htmlFor="tab-1"
24
- theme="light"
25
- >
26
- Test Step Label
27
- </InputLabel>
28
- </button>
29
- `;
30
-
31
- exports[`<ProgressTrackerStep> Snapshots and structure should render active erroneous state 1`] = `
32
- <button
33
- aria-controls="tab-panel-3"
34
- aria-selected={true}
35
- className="lumx-progress-tracker-step lumx-progress-tracker-step--is-active lumx-progress-tracker-step--is-clickable"
36
- id="tab-3"
37
- onClick={[Function]}
38
- onFocus={[Function]}
39
- onKeyPress={[Function]}
40
- role="tab"
41
- tabIndex={0}
42
- type="button"
43
- >
44
- <Icon
45
- className="lumx-progress-tracker-step__state"
46
- icon="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z"
47
- size="s"
48
- />
49
- <InputLabel
50
- className="lumx-progress-tracker-step__label"
51
- htmlFor="tab-3"
52
- theme="light"
53
- >
54
- Test Step Label
55
- </InputLabel>
56
- </button>
57
- `;
58
-
59
- exports[`<ProgressTrackerStep> Snapshots and structure should render active state 1`] = `
60
- <button
61
- aria-controls="tab-panel-3"
62
- aria-selected={true}
63
- className="lumx-progress-tracker-step lumx-progress-tracker-step--is-active lumx-progress-tracker-step--is-clickable"
64
- id="tab-3"
65
- onClick={[Function]}
66
- onFocus={[Function]}
67
- onKeyPress={[Function]}
68
- role="tab"
69
- tabIndex={0}
70
- type="button"
71
- >
72
- <Icon
73
- className="lumx-progress-tracker-step__state"
74
- icon="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z"
75
- size="s"
76
- />
77
- <InputLabel
78
- className="lumx-progress-tracker-step__label"
79
- htmlFor="tab-3"
80
- theme="light"
81
- >
82
- Test Step Label
83
- </InputLabel>
84
- </button>
85
- `;
86
-
87
- exports[`<ProgressTrackerStep> Snapshots and structure should render complete state 1`] = `
88
- <button
89
- aria-controls="tab-panel-3"
90
- aria-selected={false}
91
- className="lumx-progress-tracker-step lumx-progress-tracker-step--is-clickable"
92
- id="tab-3"
93
- onClick={[Function]}
94
- onFocus={[Function]}
95
- onKeyPress={[Function]}
96
- role="tab"
97
- tabIndex={-1}
98
- type="button"
99
- >
100
- <Icon
101
- className="lumx-progress-tracker-step__state"
102
- icon="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
103
- size="s"
104
- />
105
- <InputLabel
106
- className="lumx-progress-tracker-step__label"
107
- htmlFor="tab-3"
108
- theme="light"
109
- >
110
- Test Step Label
111
- </InputLabel>
112
- </button>
113
- `;
114
-
115
- exports[`<ProgressTrackerStep> Snapshots and structure should render erroneous state 1`] = `
116
- <button
117
- aria-controls="tab-panel-3"
118
- aria-selected={false}
119
- className="lumx-progress-tracker-step lumx-progress-tracker-step--is-clickable"
120
- id="tab-3"
121
- onClick={[Function]}
122
- onFocus={[Function]}
123
- onKeyPress={[Function]}
124
- role="tab"
125
- tabIndex={-1}
126
- type="button"
127
- >
128
- <Icon
129
- className="lumx-progress-tracker-step__state"
130
- icon="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
131
- size="s"
132
- />
133
- <InputLabel
134
- className="lumx-progress-tracker-step__label"
135
- htmlFor="tab-3"
136
- theme="light"
137
- >
138
- Test Step Label
139
- </InputLabel>
140
- </button>
141
- `;
@@ -1,25 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<ProgressTrackerStepPanel> Snapshots and structure should render correctly 1`] = `
4
- <div
5
- aria-labelledby="tab-1"
6
- className="lumx-step-panel"
7
- id="tab-panel-1"
8
- role="tabpanel"
9
- tabIndex={0}
10
- >
11
- Tab panel content
12
- </div>
13
- `;
14
-
15
- exports[`<ProgressTrackerStepPanel> Snapshots and structure should render isActive state 1`] = `
16
- <div
17
- aria-labelledby="tab-2"
18
- className="lumx-step-panel lumx-step-panel--is-active"
19
- id="tab-panel-2"
20
- role="tabpanel"
21
- tabIndex={0}
22
- >
23
- Tab panel content
24
- </div>
25
- `;
@@ -1,113 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<RadioButton> Snapshots and structure should render checked, disabled & id 1`] = `
4
- <div
5
- className="lumx-radio-button lumx-radio-button--is-checked lumx-radio-button--is-disabled lumx-radio-button--theme-light"
6
- >
7
- <div
8
- className="lumx-radio-button__input-wrapper"
9
- >
10
- <input
11
- checked={true}
12
- className="lumx-radio-button__input-native"
13
- disabled={true}
14
- id="inputID"
15
- onChange={[Function]}
16
- tabIndex={-1}
17
- type="radio"
18
- />
19
- <div
20
- className="lumx-radio-button__input-placeholder"
21
- >
22
- <div
23
- className="lumx-radio-button__input-background"
24
- />
25
- <div
26
- className="lumx-radio-button__input-indicator"
27
- />
28
- </div>
29
- </div>
30
- <div
31
- className="lumx-radio-button__content"
32
- />
33
- </div>
34
- `;
35
-
36
- exports[`<RadioButton> Snapshots and structure should render defaults 1`] = `
37
- <div
38
- className="lumx-radio-button lumx-radio-button--is-unchecked lumx-radio-button--theme-light"
39
- >
40
- <div
41
- className="lumx-radio-button__input-wrapper"
42
- >
43
- <input
44
- className="lumx-radio-button__input-native"
45
- id="fixedId"
46
- onChange={[Function]}
47
- tabIndex={0}
48
- type="radio"
49
- />
50
- <div
51
- className="lumx-radio-button__input-placeholder"
52
- >
53
- <div
54
- className="lumx-radio-button__input-background"
55
- />
56
- <div
57
- className="lumx-radio-button__input-indicator"
58
- />
59
- </div>
60
- </div>
61
- <div
62
- className="lumx-radio-button__content"
63
- />
64
- </div>
65
- `;
66
-
67
- exports[`<RadioButton> Snapshots and structure should render label & helper 1`] = `
68
- <div
69
- className="lumx-radio-button lumx-radio-button--is-unchecked lumx-radio-button--theme-light"
70
- >
71
- <div
72
- className="lumx-radio-button__input-wrapper"
73
- >
74
- <input
75
- aria-describedby="fixedId-helper"
76
- className="lumx-radio-button__input-native"
77
- id="fixedId"
78
- onChange={[Function]}
79
- tabIndex={0}
80
- type="radio"
81
- />
82
- <div
83
- className="lumx-radio-button__input-placeholder"
84
- >
85
- <div
86
- className="lumx-radio-button__input-background"
87
- />
88
- <div
89
- className="lumx-radio-button__input-indicator"
90
- />
91
- </div>
92
- </div>
93
- <div
94
- className="lumx-radio-button__content"
95
- >
96
- <InputLabel
97
- className="lumx-radio-button__label"
98
- htmlFor="fixedId"
99
- theme="light"
100
- >
101
- Label
102
- </InputLabel>
103
- <InputHelper
104
- className="lumx-radio-button__helper"
105
- id="fixedId-helper"
106
- kind="info"
107
- theme="light"
108
- >
109
- Helper
110
- </InputHelper>
111
- </div>
112
- </div>
113
- `;
@@ -1,26 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<RadioGroup> Snapshots and structure should render defaults 1`] = `
4
- <div
5
- className="lumx-radio-group"
6
- />
7
- `;
8
-
9
- exports[`<RadioGroup> Snapshots and structure should render with radio button children 1`] = `
10
- <div
11
- className="lumx-radio-group"
12
- >
13
- <RadioButton
14
- isChecked={true}
15
- key="0"
16
- label="Label 1"
17
- theme="light"
18
- />
19
- <RadioButton
20
- isChecked={false}
21
- key="1"
22
- label="Label 2"
23
- theme="light"
24
- />
25
- </div>
26
- `;
@@ -1,43 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<Select> Snapshots and structure should render correctly 1`] = `
4
- <div
5
- className="lumx-select lumx-select--has-unique lumx-select lumx-select--is-empty lumx-select--theme-light"
6
- >
7
- <SelectField
8
- anchorRef={
9
- {
10
- "current": null,
11
- }
12
- }
13
- handleKeyboardNav={[Function]}
14
- id="select-uid"
15
- isEmpty={true}
16
- selectedValueRender={[Function]}
17
- theme="light"
18
- value=""
19
- variant="input"
20
- />
21
- <Dropdown
22
- anchorRef={
23
- {
24
- "current": null,
25
- }
26
- }
27
- closeOnClick={true}
28
- closeOnClickAway={true}
29
- closeOnEscape={true}
30
- fitToAnchorWidth={true}
31
- fitWithinViewportHeight={true}
32
- focusAnchorOnClose={true}
33
- isOpen={false}
34
- onClose={[Function]}
35
- placement="bottom-start"
36
- shouldFocusOnOpen={true}
37
- >
38
- <span>
39
- Select Component
40
- </span>
41
- </Dropdown>
42
- </div>
43
- `;
@@ -1,87 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<SelectMultiple> Snapshots and structure should render chips 1`] = `
4
- <div
5
- className="lumx-select lumx-select--has-multiple lumx-select lumx-select--is-empty lumx-select--theme-light"
6
- >
7
- <SelectMultipleField
8
- anchorRef={
9
- {
10
- "current": null,
11
- }
12
- }
13
- handleKeyboardNav={[Function]}
14
- id="select-uid"
15
- isEmpty={true}
16
- selectedChipRender={[Function]}
17
- selectedValueRender={[Function]}
18
- theme="light"
19
- value={[]}
20
- variant="chip"
21
- />
22
- <Dropdown
23
- anchorRef={
24
- {
25
- "current": null,
26
- }
27
- }
28
- closeOnClick={false}
29
- closeOnClickAway={true}
30
- closeOnEscape={true}
31
- fitToAnchorWidth={true}
32
- fitWithinViewportHeight={true}
33
- focusAnchorOnClose={true}
34
- isOpen={false}
35
- onClose={[Function]}
36
- placement="bottom-start"
37
- shouldFocusOnOpen={true}
38
- >
39
- <span>
40
- Select Component
41
- </span>
42
- </Dropdown>
43
- </div>
44
- `;
45
-
46
- exports[`<SelectMultiple> Snapshots and structure should render defaults 1`] = `
47
- <div
48
- className="lumx-select lumx-select--has-multiple lumx-select lumx-select--is-empty lumx-select--theme-light"
49
- >
50
- <SelectMultipleField
51
- anchorRef={
52
- {
53
- "current": null,
54
- }
55
- }
56
- handleKeyboardNav={[Function]}
57
- id="select-uid"
58
- isEmpty={true}
59
- selectedChipRender={[Function]}
60
- selectedValueRender={[Function]}
61
- theme="light"
62
- value={[]}
63
- variant="input"
64
- />
65
- <Dropdown
66
- anchorRef={
67
- {
68
- "current": null,
69
- }
70
- }
71
- closeOnClick={false}
72
- closeOnClickAway={true}
73
- closeOnEscape={true}
74
- fitToAnchorWidth={true}
75
- fitWithinViewportHeight={true}
76
- focusAnchorOnClose={true}
77
- isOpen={false}
78
- onClose={[Function]}
79
- placement="bottom-start"
80
- shouldFocusOnOpen={true}
81
- >
82
- <span>
83
- Select Component
84
- </span>
85
- </Dropdown>
86
- </div>
87
- `;
@@ -1,7 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<SideNavigation> Snapshots and structure should render correctly 1`] = `
4
- <ul
5
- className="lumx-side-navigation"
6
- />
7
- `;