@selfdecode/sd-component-library 4.0.30 → 4.0.32

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 (65) hide show
  1. package/lib/components/buttons/index.d.ts +0 -1
  2. package/lib/components/checkboxes/checkbox/checkbox.d.ts +2 -1
  3. package/lib/components/checkboxes/checkbox-v2/checkbox-v2.d.ts +3 -0
  4. package/lib/components/checkboxes/checkbox-v2/index.d.ts +1 -0
  5. package/lib/components/checkboxes/checkbox-v2/interfaces.d.ts +9 -0
  6. package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/checkbox-v2-container.d.ts +3 -0
  7. package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/index.d.ts +2 -0
  8. package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/interfaces.d.ts +18 -0
  9. package/lib/components/checkboxes/checkbox-v2/partials/index.d.ts +1 -0
  10. package/lib/components/checkboxes/index.d.ts +2 -0
  11. package/lib/components/checkboxes/partial-checkbox/partial-checkbox.d.ts +2 -1
  12. package/lib/components/checkboxes/partial-checkbox-v2/index.d.ts +1 -0
  13. package/lib/components/checkboxes/partial-checkbox-v2/interfaces.d.ts +6 -0
  14. package/lib/components/checkboxes/partial-checkbox-v2/partial-checkbox-v2.d.ts +3 -0
  15. package/lib/components/containers/grid-containers/grid-align-content-start/grid-align-content-start.d.ts +3 -0
  16. package/lib/components/containers/grid-containers/grid-align-content-start/index.d.ts +1 -0
  17. package/lib/components/containers/grid-containers/index.d.ts +1 -0
  18. package/lib/components/meters/smiley-meter-v2/constants.d.ts +0 -2
  19. package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +0 -4
  20. package/lib/components/selectors/custom-scrollable-selector/partials/custom-scrollable-options-box/custom-scrollable-options-box.d.ts +1 -1
  21. package/lib/components/selectors/custom-scrollable-selector/partials/index.d.ts +1 -0
  22. package/lib/components/selectors/custom-selector/partials/index.d.ts +1 -0
  23. package/lib/components/selectors/secondary-custom-selector/partials/index.d.ts +1 -0
  24. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/secondary-custom-selector-options-box.d.ts +1 -1
  25. package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.d.ts +1 -1
  26. package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +1 -1
  27. package/lib/components/selectors/selector-v2/partials/index.d.ts +1 -0
  28. package/lib/components/selectors/selector-v2/selector-v2.d.ts +1 -1
  29. package/lib/components/tabs/tab-bar-v2/partials/tab-v2/interfaces.d.ts +0 -1
  30. package/lib/components/texts/base-inline-text/base-inline-text.d.ts +3 -0
  31. package/lib/components/texts/base-inline-text/index.d.ts +1 -0
  32. package/lib/components/texts/index.d.ts +2 -0
  33. package/lib/components/texts/inherit-color-text/index.d.ts +1 -0
  34. package/lib/components/texts/inherit-color-text/inherit-color-text.d.ts +3 -0
  35. package/lib/components/tooltips/index.d.ts +0 -1
  36. package/lib/components/utils/index.d.ts +0 -1
  37. package/lib/index.d.ts +0 -1
  38. package/lib/index.js +1 -1
  39. package/lib/interfaces.d.ts +0 -1
  40. package/package.json +1 -1
  41. package/lib/components/buttons/cta/share-button/assets/index.d.ts +0 -1
  42. package/lib/components/buttons/cta/share-button/assets/share.svg +0 -1
  43. package/lib/components/buttons/cta/share-button/index.d.ts +0 -3
  44. package/lib/components/buttons/cta/share-button/interfaces.d.ts +0 -23
  45. package/lib/components/buttons/cta/share-button/share-button.d.ts +0 -6
  46. package/lib/components/dropdowns/dropdown/dropdown-placholder/dropdown-placholder.d.ts +0 -6
  47. package/lib/components/dropdowns/dropdown/dropdown-placholder/index.d.ts +0 -1
  48. package/lib/components/dropdowns/dropdown/dropdown-placholder/interfaces.d.ts +0 -2
  49. package/lib/components/dropdowns/dropdown/dropdown.d.ts +0 -6
  50. package/lib/components/dropdowns/dropdown/index.d.ts +0 -3
  51. package/lib/components/dropdowns/dropdown/interfaces.d.ts +0 -38
  52. package/lib/components/dropdowns/index.d.ts +0 -2
  53. package/lib/components/dropdowns/primary-dropdown/index.d.ts +0 -1
  54. package/lib/components/dropdowns/primary-dropdown/interfaces.d.ts +0 -2
  55. package/lib/components/dropdowns/primary-dropdown/primary-dropdown.d.ts +0 -6
  56. package/lib/components/tooltips/star-tooltip/index.d.ts +0 -1
  57. package/lib/components/tooltips/star-tooltip/interfaces.d.ts +0 -23
  58. package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/index.d.ts +0 -1
  59. package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/interfaces.d.ts +0 -6
  60. package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/tooltip-text-modal.d.ts +0 -3
  61. package/lib/components/tooltips/star-tooltip/star-tooltip.d.ts +0 -3
  62. package/lib/components/utils/page-tracker/index.d.ts +0 -2
  63. package/lib/components/utils/page-tracker/interfaces.d.ts +0 -7
  64. package/lib/components/utils/page-tracker/page-tracker.d.ts +0 -2
  65. package/lib/fd0a680053462edb6f26ac4e136ee800.svg +0 -1
@@ -8,7 +8,6 @@ export type { CtaButtonProps as BaseCtaButtonProps } from "./components/buttons/
8
8
  export type { TextCtaButtonProps as BaseTextCtaButtonProps } from "./components/buttons/cta/text-cta-button";
9
9
  export type { BaseGridContainerProps as BaseBaseGridContainerProps } from "./components/containers/grid-containers/base-grid-container";
10
10
  export type { CustomScrollbarBoxProps as BaseCustomScrollbarBoxProps } from "./components/custom-scrollbar-box";
11
- export type { DropdownProps as BaseDropdownProps } from "./components/dropdowns/dropdown";
12
11
  export type { InputProps as BaseInputProps } from "./components/inputs/input";
13
12
  export type { TextInputProps as BaseTextInputProps } from "./components/inputs/text-input";
14
13
  export type { ResponsiveTextProps as BaseResponsiveTextProps } from "./components/texts/responsive-text";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfdecode/sd-component-library",
3
- "version": "4.0.30",
3
+ "version": "4.0.32",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",
@@ -1 +0,0 @@
1
- export { ReactComponent as Share } from "./share.svg";
@@ -1 +0,0 @@
1
- <?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px" height="24px"> <path d="M 18 2 A 3 3 0 0 0 15 5 A 3 3 0 0 0 15.054688 5.5605469 L 7.9394531 9.7109375 A 3 3 0 0 0 6 9 A 3 3 0 0 0 3 12 A 3 3 0 0 0 6 15 A 3 3 0 0 0 7.9355469 14.287109 L 15.054688 18.439453 A 3 3 0 0 0 15 19 A 3 3 0 0 0 18 22 A 3 3 0 0 0 21 19 A 3 3 0 0 0 18 16 A 3 3 0 0 0 16.0625 16.712891 L 8.9453125 12.560547 A 3 3 0 0 0 9 12 A 3 3 0 0 0 8.9453125 11.439453 L 16.060547 7.2890625 A 3 3 0 0 0 18 8 A 3 3 0 0 0 21 5 A 3 3 0 0 0 18 2 z"/></svg>
@@ -1,3 +0,0 @@
1
- import { ShareButtonProps as Props } from "./interfaces";
2
- export { ShareButton } from "./share-button";
3
- export declare type ShareButtonProps = Props;
@@ -1,23 +0,0 @@
1
- import { CtaButtonProps } from "../cta-button";
2
- /**
3
- * Props we want from the base button.
4
- */
5
- declare type BaseButtonProps = Pick<CtaButtonProps, "link" | "scrollTo" | "history" | "onClick" | "children" | "disabled" | "color" | "bg" | "borderColor" | "hoverBorderColor" | "hoverColor" | "hoverBg" | "m" | "mt" | "mr" | "mb" | "ml">;
6
- /**
7
- * Additional props we want to add
8
- */
9
- export interface ShareButtonProps extends BaseButtonProps {
10
- /**
11
- * The share title string.
12
- */
13
- shareTitle: string;
14
- /**
15
- * The share body string.
16
- */
17
- shareBody?: string;
18
- /**
19
- * The url we want to share.
20
- */
21
- url: string;
22
- }
23
- export {};
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import { ShareButtonProps } from "./interfaces";
3
- /**
4
- * The share button.
5
- */
6
- export declare const ShareButton: React.FunctionComponent<ShareButtonProps>;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import { DropdownPlaceholderProps } from "./interfaces";
3
- /**
4
- * The placholder for the dropdown component.
5
- */
6
- export declare const DropdownPlaceholder: (props: DropdownPlaceholderProps) => React.ReactElement<DropdownPlaceholderProps>;
@@ -1 +0,0 @@
1
- export { DropdownPlaceholder } from "./dropdown-placholder";
@@ -1,2 +0,0 @@
1
- import { DropdownProps } from "../interfaces";
2
- export declare type DropdownPlaceholderProps = Pick<DropdownProps, "placeholder" | "hideArrow">;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import { DropdownProps } from "./interfaces";
3
- /**
4
- * Base link component. Other button components should be built from this.
5
- */
6
- export declare function Dropdown(props: DropdownProps): React.ReactElement<DropdownProps>;
@@ -1,3 +0,0 @@
1
- export { Dropdown } from "./dropdown";
2
- export { Position } from "./interfaces";
3
- export type { DropdownProps } from "./interfaces";
@@ -1,38 +0,0 @@
1
- import { BaseComponentProps } from "../../interfaces";
2
- export declare enum Position {
3
- BottomLeft = "bottom_left",
4
- BottomRight = "bottom_right",
5
- TopLeft = "top_left",
6
- TopRight = "top_right"
7
- }
8
- export interface DropdownItemProps {
9
- /**
10
- * The link title.
11
- */
12
- title: string;
13
- /**
14
- * The link url.
15
- */
16
- href?: string;
17
- }
18
- /**
19
- * Defines the dropdown component's properties.
20
- */
21
- export interface DropdownProps extends BaseComponentProps {
22
- /**
23
- * List of the links.
24
- */
25
- links: DropdownItemProps[];
26
- /**
27
- * The dropdown position.
28
- */
29
- position?: Position;
30
- /**
31
- * The dropdown arrow visibility.
32
- */
33
- hideArrow?: boolean;
34
- /**
35
- * The placeholder text for he dropdown.
36
- */
37
- placeholder?: string;
38
- }
@@ -1,2 +0,0 @@
1
- export * from "./dropdown";
2
- export * from "./primary-dropdown";
@@ -1 +0,0 @@
1
- export { PrimaryDropdown } from "./primary-dropdown";
@@ -1,2 +0,0 @@
1
- import { DropdownProps } from "../dropdown";
2
- export declare type PrimaryDropdownProps = DropdownProps;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import { PrimaryDropdownProps } from "./interfaces";
3
- /**
4
- * The primary dropdown.
5
- */
6
- export declare function PrimaryDropdown(props: PrimaryDropdownProps): React.ReactElement<PrimaryDropdownProps>;
@@ -1 +0,0 @@
1
- export { StarTooltip } from "./star-tooltip";
@@ -1,23 +0,0 @@
1
- import { BaseTooltipProps } from "../base-tooltip";
2
- export interface StarTooltipProps extends Pick<BaseTooltipProps, "tooltipText"> {
3
- /**
4
- * Small text to be displayed after star icon.
5
- */
6
- primaryText: string;
7
- /**
8
- * Medium bold text to be displayed after primary text.
9
- */
10
- secondaryText: string;
11
- /**
12
- * Tooltip text color.
13
- */
14
- color?: string;
15
- /**
16
- * Tooltip text background color.
17
- */
18
- bg?: string;
19
- /**
20
- * Width of the tooltip text.
21
- */
22
- width?: string[];
23
- }
@@ -1 +0,0 @@
1
- export { TooltipTextModal } from "./tooltip-text-modal";
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export interface TooltipTextModalProps {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- text: string | React.ReactNode;
6
- }
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { TooltipTextModalProps as Props } from "./interfaces";
3
- export declare const TooltipTextModal: React.FC<Props>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { StarTooltipProps as Props } from "./interfaces";
3
- export declare const StarTooltip: React.FC<Props>;
@@ -1,2 +0,0 @@
1
- export { PageTracker } from "./page-tracker";
2
- export type { PageTrackerProps } from "./interfaces";
@@ -1,7 +0,0 @@
1
- import { Location } from "history";
2
- export interface PageTrackerProps {
3
- /**
4
- * The function to call on page change
5
- */
6
- callback: (location: Location) => void;
7
- }
@@ -1,2 +0,0 @@
1
- import { PageTrackerProps } from "./interfaces";
2
- export declare const PageTracker: (props: PageTrackerProps) => null;
@@ -1 +0,0 @@
1
- <?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px" height="24px"> <path d="M 18 2 A 3 3 0 0 0 15 5 A 3 3 0 0 0 15.054688 5.5605469 L 7.9394531 9.7109375 A 3 3 0 0 0 6 9 A 3 3 0 0 0 3 12 A 3 3 0 0 0 6 15 A 3 3 0 0 0 7.9355469 14.287109 L 15.054688 18.439453 A 3 3 0 0 0 15 19 A 3 3 0 0 0 18 22 A 3 3 0 0 0 21 19 A 3 3 0 0 0 18 16 A 3 3 0 0 0 16.0625 16.712891 L 8.9453125 12.560547 A 3 3 0 0 0 9 12 A 3 3 0 0 0 8.9453125 11.439453 L 16.060547 7.2890625 A 3 3 0 0 0 18 8 A 3 3 0 0 0 21 5 A 3 3 0 0 0 18 2 z"/></svg>