@newtonschool/grauity 3.0.4 → 3.0.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,OAAO,UAAW,YAAY,gBA0MnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,OAAO,UAAW,YAAY,gBAuNnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { StyledDivProps } from '../../../common/types';
3
- import { StyledTooltipProps } from './types';
2
+ import { StyledTooltipArrowProps, StyledTooltipProps } from './types';
4
3
  export declare const StyledTooltipWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTooltipProps>> & string;
5
- export declare const StyledTooltipArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledDivProps>> & string;
4
+ export declare const StyledTooltipArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTooltipArrowProps>> & string;
6
5
  //# sourceMappingURL=Tooltip.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tooltip/Tooltip.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,oBAAoB,uPAiBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,mPAQ9B,CAAC"}
1
+ {"version":3,"file":"Tooltip.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tooltip/Tooltip.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEtE,eAAO,MAAM,oBAAoB,uPAyBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,4PAQ9B,CAAC"}
@@ -51,6 +51,26 @@ export interface TooltipProps {
51
51
  * @default false
52
52
  * */
53
53
  defaultOpen?: boolean;
54
+ /**
55
+ * Whether the tooltip is open
56
+ * If provided with true or false, the tooltip will become controlled.
57
+ * @default null
58
+ * */
59
+ isOpen?: boolean | null;
60
+ /**
61
+ * The text color of the tooltip
62
+ * @default 'var(--text-emphasis-invert-primary-default)'
63
+ * */
64
+ color?: string;
65
+ /**
66
+ * The background color of the tooltip
67
+ * @default 'var(--bg-subtle-invert-primary-default)'
68
+ * */
69
+ backgroundColor?: string;
70
+ /**
71
+ * Additional className to be passed to the tooltip
72
+ */
73
+ className?: string;
54
74
  /**
55
75
  * The children that the tooltip is wrapping
56
76
  * */
@@ -61,6 +81,19 @@ export interface StyledTooltipProps extends StyledDivProps {
61
81
  * The padding of the tooltip
62
82
  * @default '12px'
63
83
  * */
64
- padding?: string;
84
+ $padding?: string;
85
+ /**
86
+ * The background color of the tooltip
87
+ * @default 'var(--bg-subtle-invert-primary-default)'
88
+ * */
89
+ $backgroundColor?: string;
90
+ $color?: string;
91
+ }
92
+ export interface StyledTooltipArrowProps extends StyledDivProps {
93
+ /**
94
+ * The background color of the tooltip
95
+ * @default 'var(--bg-subtle-invert-primary-default)'
96
+ * */
97
+ $backgroundColor?: string;
65
98
  }
66
99
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tooltip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE;QACN,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;CACL;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,GAAG,iBAAiB,EAAE,CAAC;AAEtD,MAAM,WAAW,YAAY;IACzB;;;SAGK;IACL,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;;SAGK;IACL,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;SAEK;IACL,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;;;SAKK;IACL,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;SAGK;IACL,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;SAGK;IACL,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;SAEK;IACL,iBAAiB,CAAC,EAAE,GAAG,CAAC;IAExB;;;SAGK;IACL,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;SAEK;IACL,QAAQ,EAAE,eAAe,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {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M,WAAW,kBAAmB,SAAQ,cAAc;IACtD;;;SAGK;IACL,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;SAGK;IACL,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC3D;;;SAGK;IACL,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtonschool/grauity",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "Design System for Newton School",
5
5
  "keywords": [
6
6
  "Newton School",