dce-reactkit 3.10.3 → 3.11.1-beta.tooltip.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.
@@ -2,5 +2,5 @@
2
2
  * Universal stylesheet
3
3
  * @author Gabe Abrams
4
4
  */
5
- declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n\n/* Tooltip White Text */\n.tooltip .tooltip-inner {\n color: white !important;\n}\n";
5
+ declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n";
6
6
  export default shared;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.10.3",
3
+ "version": "3.11.1-beta.tooltip.1",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -608,23 +608,23 @@ const AppWrapper: React.FC<Props> = (props: Props): React.ReactElement => {
608
608
 
609
609
  // Prompt
610
610
  const [promptInfo, setPromptInfoInner] = useState<
611
- | undefined
612
- | {
613
- title: string,
614
- currentInputFieldText: string,
615
- opts: {
616
- textAboveInputField?: string,
617
- placeholder?: string,
618
- defaultText?: string,
619
- confirmButtonText?: string,
620
- confirmButtonVariant?: Variant,
621
- cancelButtonText?: string,
622
- cancelButtonVariant?: Variant,
623
- minNumChars?: number,
624
- findValidationError?: (text: string) => string | undefined,
625
- ariaLabel?: string,
626
- }
611
+ | undefined
612
+ | {
613
+ title: string,
614
+ currentInputFieldText: string,
615
+ opts: {
616
+ textAboveInputField?: string,
617
+ placeholder?: string,
618
+ defaultText?: string,
619
+ confirmButtonText?: string,
620
+ confirmButtonVariant?: Variant,
621
+ cancelButtonText?: string,
622
+ cancelButtonVariant?: Variant,
623
+ minNumChars?: number,
624
+ findValidationError?: (text: string) => string | undefined,
625
+ ariaLabel?: string,
627
626
  }
627
+ }
628
628
  >(undefined);
629
629
  setPromptInfo = setPromptInfoInner;
630
630
 
@@ -918,7 +918,7 @@ const AppWrapper: React.FC<Props> = (props: Props): React.ReactElement => {
918
918
  ? `
919
919
  .tooltip-inner {
920
920
  background-color: white;
921
- color: black;
921
+ color: black !important;
922
922
  border: 0.1rem solid black;
923
923
  pointer-events: none;
924
924
  }
@@ -931,7 +931,7 @@ const AppWrapper: React.FC<Props> = (props: Props): React.ReactElement => {
931
931
  : `
932
932
  .tooltip-inner {
933
933
  background-color: black;
934
- color: white;
934
+ color: white !important;
935
935
  border: 0.1rem solid white;
936
936
  pointer-events: none;
937
937
  }
@@ -130,7 +130,6 @@ const CheckboxButton: React.FC<Props> = (props) => {
130
130
  className="ps-1 text-start text-break"
131
131
  style={{
132
132
  whiteSpace: 'pre-wrap',
133
- tabSize: 2,
134
133
  }}
135
134
  >
136
135
  {text}
@@ -114,7 +114,6 @@ const RadioButton: React.FC<Props> = (props) => {
114
114
  className="ps-1 text-start text-break"
115
115
  style={{
116
116
  whiteSpace: 'pre-wrap',
117
- tabSize: 2,
118
117
  }}
119
118
  >
120
119
  {text}
@@ -18,11 +18,6 @@ const shared = `
18
18
  .tooltip {
19
19
  z-index: 9000000000 !important;
20
20
  }
21
-
22
- /* Tooltip White Text */
23
- .tooltip .tooltip-inner {
24
- color: white !important;
25
- }
26
21
  `;
27
22
 
28
23
  export default shared;