@instructure/ui-link 11.7.5 → 11.7.6-snapshot-11

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.
@@ -12,27 +12,27 @@ declare class Link extends Component<LinkProps, LinkState> {
12
12
  static allowedProps: readonly (keyof {
13
13
  children: React.ReactNode;
14
14
  href?: string;
15
- color?: "link" | "link-inverse";
15
+ color?: 'link' | 'link-inverse';
16
16
  elementRef?: (element: Element | null) => void;
17
17
  as?: import("@instructure/shared-types").AsElementType;
18
18
  role?: string;
19
19
  forceButtonRole?: boolean;
20
- interaction?: "enabled" | "disabled";
20
+ interaction?: 'enabled' | 'disabled';
21
21
  margin?: import("@instructure/emotion").Spacing;
22
22
  renderIcon?: import("@instructure/shared-types").Renderable;
23
- iconPlacement?: "start" | "end";
24
- display?: "auto" | "block" | "inline-block" | "flex" | "inline-flex";
23
+ iconPlacement?: 'start' | 'end';
24
+ display?: 'auto' | 'block' | 'inline-block' | 'flex' | 'inline-flex';
25
25
  isWithinText?: boolean;
26
26
  onBlur?: (event: React.FocusEvent<ViewOwnProps>) => void;
27
27
  onClick?: (event: React.MouseEvent<ViewOwnProps>) => void;
28
28
  onFocus?: (event: React.FocusEvent<ViewOwnProps>) => void;
29
29
  onMouseEnter?: (event: React.MouseEvent<ViewOwnProps>) => void;
30
- variant?: "inline" | "inline-small" | "standalone" | "standalone-small";
30
+ variant?: 'inline' | 'inline-small' | 'standalone' | 'standalone-small';
31
31
  })[];
32
32
  static defaultProps: {
33
33
  readonly interaction: undefined;
34
- readonly color: "link";
35
- readonly iconPlacement: "start";
34
+ readonly color: 'link';
35
+ readonly iconPlacement: 'start';
36
36
  readonly isWithinText: true;
37
37
  readonly forceButtonRole: true;
38
38
  };
@@ -49,9 +49,9 @@ declare class Link extends Component<LinkProps, LinkState> {
49
49
  handleFocus: React.FocusEventHandler<ViewOwnProps>;
50
50
  handleBlur: React.FocusEventHandler<ViewOwnProps>;
51
51
  get containsTruncateText(): boolean;
52
- get display(): "auto" | "block" | "inline-block" | "flex" | "inline-flex";
52
+ get display(): "auto" | "block" | "flex" | "inline-block" | "inline-flex";
53
53
  get interaction(): import("@instructure/ui-react-utils").InteractionType;
54
- get element(): import("react").ComponentClass<any, any> | NonNullable<import("@instructure/shared-types").AsElementType | undefined> | import("react").ComponentClass<Readonly<LinkProps>, any> | import("react").FunctionComponent<Readonly<LinkProps>>;
54
+ get element(): import("react").ComponentClass<any, any> | import("react").ComponentClass<Readonly<LinkProps>, any> | import("react").FunctionComponent<Readonly<LinkProps>> | NonNullable<import("@instructure/shared-types").AsElementType | undefined>;
55
55
  get focused(): boolean;
56
56
  get focusable(): Element[];
57
57
  get hasVisibleChildren(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Link/v1/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAoB3C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9D;;;;GAIG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAChD,MAAM,CAAC,WAAW,SAAS;IAC3B,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;MAOT;IAEV,KAAK;;MAAsB;IAE3B,IAAI,KAAK,mBAMR;IACD,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,cAAc,QAAO,cAAc,CAKlC;IAED,gBAAgB,GAAI,IAAI,OAAO,GAAG,IAAI,UAQrC;IAED,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAUjD;I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AAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAUjD;IAED,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAKjD;IAED,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAKhD;IAED,IAAI,oBAAoB,YAgBvB;IAED,IAAI,OAAO,+DAYV;IAED,IAAI,WAAW,0DAEd;IAED,IAAI,OAAO,8OAEV;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,cAEZ;IAED,IAAI,kBAAkB,YAErB;IAED,IAAI,IAAI,uBAQP;IAED,KAAK,SAEJ;IAED,UAAU,qDAWT;IAED,MAAM,qDAyDL;CACF;eAEc,IAAI;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Link/v1/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnE;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,SAAS,EACzB,OAAO,SAAS,EAChB,OAAO,cAAc,KACpB,SAyLF,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Link/v1/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnE;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,SAAS,SAClB,SAAS,SACT,cAAc,KACpB,SAyLF,CAAA;eAEc,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/Link/v1/theme.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,GAAI,OAAO,KAAK,KAAG,SAoD9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/Link/v1/theme.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,SAoD9C,CAAA;eAEc,sBAAsB"}
@@ -12,27 +12,27 @@ declare class Link extends Component<LinkProps, LinkState> {
12
12
  static allowedProps: readonly (keyof {
13
13
  children: React.ReactNode;
14
14
  href?: string;
15
- color?: "link" | "link-inverse";
15
+ color?: 'link' | 'link-inverse';
16
16
  elementRef?: (element: Element | null) => void;
17
17
  as?: import("@instructure/shared-types").AsElementType;
18
18
  role?: string;
19
19
  forceButtonRole?: boolean;
20
- interaction?: "enabled" | "disabled";
20
+ interaction?: 'enabled' | 'disabled';
21
21
  margin?: import("@instructure/emotion").Spacing;
22
22
  renderIcon?: import("@instructure/shared-types").Renderable;
23
- iconPlacement?: "start" | "end";
24
- display?: "auto" | "block" | "inline-block" | "flex" | "inline-flex";
23
+ iconPlacement?: 'start' | 'end';
24
+ display?: 'auto' | 'block' | 'inline-block' | 'flex' | 'inline-flex';
25
25
  onBlur?: (event: React.FocusEvent<ViewOwnProps>) => void;
26
26
  onClick?: (event: React.MouseEvent<ViewOwnProps>) => void;
27
27
  onFocus?: (event: React.FocusEvent<ViewOwnProps>) => void;
28
28
  onMouseEnter?: (event: React.MouseEvent<ViewOwnProps>) => void;
29
- variant?: "inline" | "standalone";
30
- size?: "small" | "medium" | "large";
29
+ variant?: 'inline' | 'standalone';
30
+ size?: 'small' | 'medium' | 'large';
31
31
  })[];
32
32
  static defaultProps: {
33
33
  readonly interaction: undefined;
34
- readonly color: "link";
35
- readonly iconPlacement: "start";
34
+ readonly color: 'link';
35
+ readonly iconPlacement: 'start';
36
36
  readonly forceButtonRole: true;
37
37
  };
38
38
  state: {
@@ -42,15 +42,15 @@ declare class Link extends Component<LinkProps, LinkState> {
42
42
  componentDidMount(): void;
43
43
  componentDidUpdate(): void;
44
44
  makeStyleProps: () => LinkStyleProps & {
45
- variant?: LinkProps["variant"];
46
- size?: LinkProps["size"];
45
+ variant?: LinkProps['variant'];
46
+ size?: LinkProps['size'];
47
47
  };
48
48
  handleElementRef: (el: Element | null) => void;
49
49
  handleClick: React.MouseEventHandler<ViewOwnProps>;
50
50
  handleFocus: React.FocusEventHandler<ViewOwnProps>;
51
51
  handleBlur: React.FocusEventHandler<ViewOwnProps>;
52
52
  get containsTruncateText(): boolean;
53
- get display(): "auto" | "block" | "inline-block" | "flex" | "inline-flex";
53
+ get display(): "auto" | "block" | "flex" | "inline-block" | "inline-flex";
54
54
  get interaction(): import("@instructure/ui-react-utils").InteractionType;
55
55
  get element(): import("react").ComponentClass<any, any> | import("react").ComponentClass<Readonly<LinkProps>, any> | import("react").FunctionComponent<Readonly<LinkProps>> | NonNullable<import("@instructure/shared-types").AsElementType | undefined>;
56
56
  get focused(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Link/v2/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAmB3C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D;;;;GAIG;AACH,cACM,IAAK,SAAQ,S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,6BAA6B,CAAA;AAE/D;;;;GAIG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAChD,MAAM,CAAC,WAAW,SAAS;IAC3B,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;iBAEjB,WAAW;iBACX,KAAK,EAAE,MAAM;iBACb,aAAa,EAAE,OAAO;iBACtB,eAAe;MACP;IAEV,KAAK;QAAK,QAAQ;MAAS;IAE3B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB,SAEhB;IAED,kBAAkB,SAEjB;IAED,cAAc,QAAO,cAAc,GAAG;QACpC,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;QAC9B,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;KACzB,CAeA;IAED,gBAAgB,OAAQ,OAAO,GAAG,IAAI,UAQrC;IAED,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAUjD;IAED,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAKjD;IAED,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAKhD;IAED,IAAI,oBAAoB,YAgBvB;IAED,IAAI,OAAO,+DAYV;IAED,IAAI,WAAW,0DAEd;IAED,IAAI,OAAO,8OAEV;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,cAEZ;IAED,IAAI,kBAAkB,YAErB;IAED,IAAI,IAAI,uBAQP;IAED,KAAK,SAEJ;IAED,UAAU,qDA6BT;IAED,MAAM,qDAwDL;CACF;eAEc,IAAI;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -11,9 +11,9 @@ import type { LinkProps, LinkStyle, LinkStyleProps } from './props';
11
11
  * @param {Object} state the state of the component, the style is applied to
12
12
  * @return {Object} The final style object, which will be used in the component
13
13
  */
14
- declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes["Link"]>, props: LinkProps, sharedTokens: SharedTokens, state?: Partial<LinkStyleProps & {
15
- variant?: "inline" | "standalone";
16
- size?: "small" | "medium" | "large";
14
+ declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes['Link']>, props: LinkProps, sharedTokens: SharedTokens, state?: Partial<LinkStyleProps & {
15
+ variant?: 'inline' | 'standalone';
16
+ size?: 'small' | 'medium' | 'large';
17
17
  }>) => LinkStyle;
18
18
  export default generateStyle;
19
19
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Link/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAKnE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,EACrD,OAAO,SAAS,EAChB,cAAc,YAAY,EAC1B,QAAO,OAAO,CACZ,cAAc,GAAG;IACf,OAAO,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;IACjC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CACpC,CACG,KACL,SAqNF,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Link/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAKnE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa,mBACD,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,SAC9C,SAAS,gBACF,YAAY,UACnB,OAAO,CACZ,cAAc,GAAG;IACf,OAAO,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;IACjC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CACpC,CACF,KACA,SAqNF,CAAA;eAEc,aAAa"}