@instructure/ui-list 8.8.0 → 8.8.1-snapshot.63

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 (78) hide show
  1. package/LICENSE.md +27 -0
  2. package/es/InlineList/InlineListItem/index.js +5 -38
  3. package/es/InlineList/InlineListItem/props.js +56 -0
  4. package/es/InlineList/index.js +2 -25
  5. package/{src/InlineList/InlineListItem/types.ts → es/InlineList/props.js} +26 -20
  6. package/es/List/ListItem/index.js +4 -37
  7. package/es/List/ListItem/props.js +56 -0
  8. package/es/List/index.js +4 -41
  9. package/es/List/props.js +60 -0
  10. package/lib/InlineList/InlineListItem/index.js +5 -38
  11. package/lib/InlineList/InlineListItem/props.js +68 -0
  12. package/lib/InlineList/index.js +3 -28
  13. package/lib/InlineList/props.js +65 -0
  14. package/lib/List/ListItem/index.js +4 -37
  15. package/lib/List/ListItem/props.js +68 -0
  16. package/lib/List/index.js +4 -42
  17. package/lib/List/props.js +74 -0
  18. package/package.json +15 -14
  19. package/src/InlineList/InlineListItem/index.tsx +8 -46
  20. package/src/InlineList/InlineListItem/props.ts +105 -0
  21. package/src/InlineList/InlineListItem/styles.ts +1 -1
  22. package/src/InlineList/InlineListItem/theme.ts +1 -1
  23. package/src/InlineList/index.tsx +5 -35
  24. package/src/InlineList/props.ts +102 -0
  25. package/src/List/ListItem/index.tsx +7 -45
  26. package/src/List/ListItem/props.ts +105 -0
  27. package/src/List/ListItem/styles.ts +1 -1
  28. package/src/List/ListItem/theme.ts +1 -1
  29. package/src/List/index.tsx +7 -48
  30. package/src/List/props.ts +111 -0
  31. package/src/List/styles.ts +1 -1
  32. package/src/List/theme.ts +1 -1
  33. package/src/index.ts +4 -4
  34. package/types/InlineList/InlineListItem/index.d.ts +19 -30
  35. package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
  36. package/types/InlineList/InlineListItem/props.d.ts +20 -0
  37. package/types/InlineList/InlineListItem/props.d.ts.map +1 -0
  38. package/types/InlineList/InlineListItem/styles.d.ts +1 -1
  39. package/types/InlineList/InlineListItem/theme.d.ts +1 -1
  40. package/types/InlineList/InlineListItem/theme.d.ts.map +1 -1
  41. package/types/InlineList/index.d.ts +27 -23
  42. package/types/InlineList/index.d.ts.map +1 -1
  43. package/types/InlineList/props.d.ts +20 -0
  44. package/types/InlineList/props.d.ts.map +1 -0
  45. package/types/List/ListItem/index.d.ts +19 -30
  46. package/types/List/ListItem/index.d.ts.map +1 -1
  47. package/types/List/ListItem/props.d.ts +20 -0
  48. package/types/List/ListItem/props.d.ts.map +1 -0
  49. package/types/List/ListItem/styles.d.ts +1 -1
  50. package/types/List/ListItem/theme.d.ts +1 -1
  51. package/types/List/ListItem/theme.d.ts.map +1 -1
  52. package/types/List/index.d.ts +21 -35
  53. package/types/List/index.d.ts.map +1 -1
  54. package/types/List/props.d.ts +21 -0
  55. package/types/List/props.d.ts.map +1 -0
  56. package/types/List/styles.d.ts +1 -1
  57. package/types/List/theme.d.ts +1 -1
  58. package/types/List/theme.d.ts.map +1 -1
  59. package/types/index.d.ts +4 -4
  60. package/es/InlineList/InlineListItem/types.js +0 -1
  61. package/es/InlineList/types.js +0 -1
  62. package/es/List/ListItem/types.js +0 -1
  63. package/es/List/types.js +0 -1
  64. package/lib/InlineList/InlineListItem/types.js +0 -1
  65. package/lib/InlineList/types.js +0 -1
  66. package/lib/List/ListItem/types.js +0 -1
  67. package/lib/List/types.js +0 -1
  68. package/src/InlineList/types.ts +0 -43
  69. package/src/List/ListItem/types.ts +0 -45
  70. package/src/List/types.ts +0 -46
  71. package/types/InlineList/InlineListItem/types.d.ts +0 -12
  72. package/types/InlineList/InlineListItem/types.d.ts.map +0 -1
  73. package/types/InlineList/types.d.ts +0 -10
  74. package/types/InlineList/types.d.ts.map +0 -1
  75. package/types/List/ListItem/types.d.ts +0 -12
  76. package/types/List/ListItem/types.d.ts.map +0 -1
  77. package/types/List/types.d.ts +0 -13
  78. package/types/List/types.d.ts.map +0 -1
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  import { ListTheme } from '@instructure/shared-types'
26
- import { ListProps } from './types'
26
+ import { ListProps } from './props'
27
27
 
28
28
  /**
29
29
  * ---
package/src/List/theme.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { Theme } from '@instructure/ui-themes'
25
+ import type { Theme } from '@instructure/ui-themes'
26
26
  import { ListTheme } from '@instructure/shared-types'
27
27
 
28
28
  /**
package/src/index.ts CHANGED
@@ -25,7 +25,7 @@
25
25
  export { InlineList } from './InlineList'
26
26
  export { List, ListItem } from './List'
27
27
 
28
- export type { InlineListProps } from './InlineList/types'
29
- export type { InlineListItemProps } from './InlineList/InlineListItem/types'
30
- export type { ListProps } from './List/types'
31
- export type { ListItemProps } from './List/ListItem/types'
28
+ export type { InlineListProps } from './InlineList/props'
29
+ export type { InlineListItemProps } from './InlineList/InlineListItem/props'
30
+ export type { ListProps } from './List/props'
31
+ export type { ListItemProps } from './List/ListItem/props'
@@ -1,8 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { Component } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { jsx } from '@instructure/emotion';
5
- import { InlineListItemProps } from './types';
4
+ import type { InlineListItemProps } from './props';
6
5
  /**
7
6
  ---
8
7
  parent: InlineList
@@ -11,36 +10,26 @@ id: InlineList.Item
11
10
  **/
12
11
  declare class InlineListItem extends Component<InlineListItemProps> {
13
12
  static readonly componentId = "InlineList.Item";
14
- static propTypes: {
15
- makeStyles: PropTypes.Requireable<(...args: any[]) => any>;
16
- styles: PropTypes.Requireable<object>;
17
- children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
18
- /**
19
- * Inherits delimiter from the parent InlineList component
20
- */
21
- delimiter: PropTypes.Requireable<string>;
22
- size: PropTypes.Requireable<string>;
23
- /**
24
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
25
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
26
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
27
- */
28
- margin: (props: any, propName: any, componentName: any, location: any) => any;
29
- /**
30
- * Valid values are `0`, `none`, `xxx-small`, `xx-small`, `x-small`,
31
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
32
- * familiar CSS-like shorthand. For example: `padding="small x-large large"`.
33
- */
34
- padding: (props: any, propName: any, componentName: any, location: any) => any;
35
- /**
36
- * Inherits itemSpacing from the parent InlineList component
37
- */
38
- spacing: PropTypes.Requireable<string>;
39
- elementRef: PropTypes.Requireable<(...args: any[]) => any>;
40
- };
13
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
14
+ children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
15
+ delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
16
+ size?: "small" | "medium" | "large" | undefined;
17
+ margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
18
+ padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
19
+ spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
20
+ elementRef?: ((...args: any[]) => any) | undefined;
21
+ }>;
22
+ static allowedProps: readonly (keyof {
23
+ children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
24
+ delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
25
+ size?: "small" | "medium" | "large" | undefined;
26
+ margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
27
+ padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
28
+ spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
29
+ elementRef?: ((...args: any[]) => any) | undefined;
30
+ })[];
41
31
  static defaultProps: {
42
32
  padding: string;
43
- margin: undefined;
44
33
  spacing: string;
45
34
  delimiter: string;
46
35
  size: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,SAAS,MAAM,YAAY,CAAA;AAMlC,OAAO,EAAa,GAAG,EAAsB,MAAM,sBAAsB,CAAA;AAIzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C;;;;;GAKG;AACH,cAEM,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,SAAS;;;;QAMd;;WAEG;;;QAGH;;;;WAIG;;QAEH;;;;WAIG;;QAEH;;WAEG;;;MAaJ;IAED,MAAM,CAAC,YAAY;;;;;;;MAQlB;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,MAAM;CA6BP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;GAKG;AACH,cAEM,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,SAAS;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,MAAM;CA6BP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { Spacing, WithStyleProps } from '@instructure/emotion';
3
+ import type { PropValidators } from '@instructure/shared-types';
4
+ declare type InlineListItemOwnProps = {
5
+ children: React.ReactNode | ((...args: any[]) => React.ReactNode);
6
+ delimiter?: 'none' | 'pipe' | 'slash' | 'arrow';
7
+ size?: 'small' | 'medium' | 'large';
8
+ margin?: Spacing;
9
+ padding?: Spacing;
10
+ spacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
11
+ elementRef?: (...args: any[]) => any;
12
+ };
13
+ declare type PropKeys = keyof InlineListItemOwnProps;
14
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
15
+ declare type InlineListItemProps = InlineListItemOwnProps & WithStyleProps;
16
+ declare const propTypes: PropValidators<PropKeys>;
17
+ declare const allowedProps: AllowedPropKeys;
18
+ export type { InlineListItemProps };
19
+ export { propTypes, allowedProps };
20
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;IAC/C,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EACJ,MAAM,GACN,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,CAAA;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CACrC,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAAG,cAAc,CAAA;AAElE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAkCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,mBAAmB,EAAE,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { InlineListItemTheme } from '@instructure/shared-types';
2
- import { InlineListItemProps } from './types';
2
+ import { InlineListItemProps } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
@@ -1,4 +1,4 @@
1
- import { Theme } from '@instructure/ui-themes';
1
+ import type { Theme } from '@instructure/ui-themes';
2
2
  import { InlineListItemTheme } from '@instructure/shared-types';
3
3
  /**
4
4
  * Generates the theme object for the component from the theme and provided additional information
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,mBAoC9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,mBAoC9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -1,36 +1,40 @@
1
1
  import React, { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { InlineListItem } from './InlineListItem';
4
- import { InlineListProps } from './types';
3
+ import type { InlineListProps } from './props';
5
4
  /**
6
5
  ---
7
6
  category: components
8
7
  ---
9
8
  **/
10
9
  declare class InlineList extends Component<InlineListProps> {
11
- static propTypes: {
10
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
12
11
  /**
13
- * Only accepts `<InlineList.Item>` as a child
14
- */
15
- children: {
16
- (props: Record<string, any>, propName: string, componentName: string): Error | null;
17
- isRequired: (props: Record<string, any>, propName: string, componentName: string, location?: string | undefined, propFullName?: string | undefined) => Error | null;
18
- };
19
- as: PropTypes.Requireable<string>;
12
+ ---
13
+ category: components
14
+ ---
15
+ **/
16
+ children?: React.ReactNode;
17
+ as?: "ol" | "ul" | undefined;
18
+ margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
19
+ size?: "small" | "medium" | "large" | undefined;
20
+ delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
21
+ itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
22
+ elementRef?: ((...args: any[]) => any) | undefined;
23
+ }>;
24
+ static allowedProps: readonly (keyof {
20
25
  /**
21
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
22
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
23
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
24
- */
25
- margin: (props: any, propName: any, componentName: any, location: any) => any;
26
- size: PropTypes.Requireable<string>;
27
- delimiter: PropTypes.Requireable<string>;
28
- /**
29
- * Sets the margin separating each ListItem.
30
- */
31
- itemSpacing: PropTypes.Requireable<string>;
32
- elementRef: PropTypes.Requireable<(...args: any[]) => any>;
33
- };
26
+ ---
27
+ category: components
28
+ ---
29
+ **/
30
+ children?: React.ReactNode;
31
+ as?: "ol" | "ul" | undefined;
32
+ margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
33
+ size?: "small" | "medium" | "large" | undefined;
34
+ delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
35
+ itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
36
+ elementRef?: ((...args: any[]) => any) | undefined;
37
+ })[];
34
38
  static defaultProps: {
35
39
  children: null;
36
40
  itemSpacing: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InlineList/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAgB,MAAM,OAAO,CAAA;AAChE,OAAO,SAAS,MAAM,YAAY,CAAA;AAQlC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;GAIG;AACH,cACM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,SAAS;QACd;;WAEG;;;;;;QAGH;;;;WAIG;;;;QAIH;;WAEG;;;MAaJ;IAED,MAAM,CAAC,YAAY;;;;;;;;MASlB;IAED,MAAM,CAAC,IAAI,wBAAiB;IAE5B,cAAc;IAYd,MAAM;CAgBP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InlineList/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAgB,MAAM,OAAO,CAAA;AAMhE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;GAIG;AACH,cACM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,SAAS;QAPlB;;;;WAIG;;;;;;;;OAG2B;IAC5B,MAAM,CAAC,YAAY;QARrB;;;;WAIG;;;;;;;;SAIiC;IAClC,MAAM,CAAC,YAAY;;;;;;;;MASlB;IAED,MAAM,CAAC,IAAI,wBAAiB;IAE5B,cAAc;IAYd,MAAM;CAgBP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { Spacing } from '@instructure/emotion';
3
+ import type { PropValidators } from '@instructure/shared-types';
4
+ declare type InlineListOwnProps = {
5
+ children?: React.ReactNode;
6
+ as?: 'ul' | 'ol';
7
+ margin?: Spacing;
8
+ size?: 'small' | 'medium' | 'large';
9
+ delimiter?: 'none' | 'pipe' | 'slash' | 'arrow';
10
+ itemSpacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
11
+ elementRef?: (...args: any[]) => any;
12
+ };
13
+ declare type PropKeys = keyof InlineListOwnProps;
14
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
15
+ declare type InlineListProps = InlineListOwnProps;
16
+ declare const propTypes: PropValidators<PropKeys>;
17
+ declare const allowedProps: AllowedPropKeys;
18
+ export type { InlineListProps };
19
+ export { propTypes, allowedProps };
20
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/InlineList/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;IAC/C,WAAW,CAAC,EACR,MAAM,GACN,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,CAAA;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CACrC,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,eAAe,GAAG,kBAAkB,CAAA;AAEzC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA6BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,8 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { Component } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { jsx } from '@instructure/emotion';
5
- import { ListItemProps } from './types';
4
+ import type { ListItemProps } from './props';
6
5
  /**
7
6
  ---
8
7
  parent: List
@@ -11,36 +10,26 @@ id: List.Item
11
10
  **/
12
11
  declare class ListItem extends Component<ListItemProps> {
13
12
  static readonly componentId = "List.Item";
14
- static propTypes: {
15
- makeStyles: PropTypes.Requireable<(...args: any[]) => any>;
16
- styles: PropTypes.Requireable<object>;
17
- children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
18
- /**
19
- * Inherits delimiter from the parent List component.
20
- */
21
- delimiter: PropTypes.Requireable<string>;
22
- size: PropTypes.Requireable<string>;
23
- /**
24
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
25
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
26
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
27
- */
28
- margin: (props: any, propName: any, componentName: any, location: any) => any;
29
- /**
30
- * Valid values are `0`, `none`, `xxx-small`, `xx-small`, `x-small`,
31
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
32
- * familiar CSS-like shorthand. For example: `padding="small x-large large"`.
33
- */
34
- padding: (props: any, propName: any, componentName: any, location: any) => any;
35
- /**
36
- * Inherits itemSpacing from the parent List component
37
- */
38
- spacing: PropTypes.Requireable<string>;
39
- elementRef: PropTypes.Requireable<(...args: any[]) => any>;
40
- };
13
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
14
+ children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
15
+ delimiter?: "none" | "dashed" | "solid" | undefined;
16
+ size?: "small" | "medium" | "large" | undefined;
17
+ margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
18
+ padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
19
+ spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
20
+ elementRef?: ((...args: any[]) => any) | undefined;
21
+ }>;
22
+ static allowedProps: readonly (keyof {
23
+ children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
24
+ delimiter?: "none" | "dashed" | "solid" | undefined;
25
+ size?: "small" | "medium" | "large" | undefined;
26
+ margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
27
+ padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
28
+ spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
29
+ elementRef?: ((...args: any[]) => any) | undefined;
30
+ })[];
41
31
  static defaultProps: {
42
32
  padding: string;
43
- margin: undefined;
44
33
  spacing: string;
45
34
  delimiter: string;
46
35
  size: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,SAAS,MAAM,YAAY,CAAA;AAMlC,OAAO,EAAa,GAAG,EAAsB,MAAM,sBAAsB,CAAA;AAIzE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC;;;;;GAKG;AACH,cAEM,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IAC7C,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IAEzC,MAAM,CAAC,SAAS;;;;QAMd;;WAEG;;;QAGH;;;;WAIG;;QAEH;;;;WAIG;;QAEH;;WAEG;;;MAaJ;IAED,MAAM,CAAC,YAAY;;;;;;;MAQlB;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,MAAM;CA2BP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;GAKG;AACH,cAEM,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IAC7C,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IAEzC,MAAM,CAAC,SAAS;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,MAAM;CA2BP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { Spacing, WithStyleProps } from '@instructure/emotion';
3
+ import type { PropValidators } from '@instructure/shared-types';
4
+ declare type ListItemOwnProps = {
5
+ children: React.ReactNode | ((...args: any[]) => React.ReactNode);
6
+ delimiter?: 'none' | 'dashed' | 'solid';
7
+ size?: 'small' | 'medium' | 'large';
8
+ margin?: Spacing;
9
+ padding?: Spacing;
10
+ spacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
11
+ elementRef?: (...args: any[]) => any;
12
+ };
13
+ declare type PropKeys = keyof ListItemOwnProps;
14
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
15
+ declare type ListItemProps = ListItemOwnProps & WithStyleProps;
16
+ declare const propTypes: PropValidators<PropKeys>;
17
+ declare const allowedProps: AllowedPropKeys;
18
+ export type { ListItemProps };
19
+ export { propTypes, allowedProps };
20
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACvC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EACJ,MAAM,GACN,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,CAAA;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CACrC,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,gBAAgB,CAAA;AAEtC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,aAAa,GAAG,gBAAgB,GAAG,cAAc,CAAA;AAEtD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAkCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,CAAA;AAC7B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ListItemTheme } from '@instructure/shared-types';
2
- import { ListItemProps } from './types';
2
+ import { ListItemProps } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
@@ -1,4 +1,4 @@
1
- import { Theme } from '@instructure/ui-themes';
1
+ import type { Theme } from '@instructure/ui-themes';
2
2
  import { ListItemTheme } from '@instructure/shared-types';
3
3
  /**
4
4
  * Generates the theme object for the component from the theme and provided additional information
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,aAiC9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,aAiC9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -1,9 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import { Component, ReactElement } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { ListItem } from './ListItem';
5
4
  import { jsx } from '@instructure/emotion';
6
- import { ListProps } from './types';
5
+ import type { ListProps } from './props';
7
6
  /**
8
7
  ---
9
8
  category: components
@@ -11,44 +10,31 @@ category: components
11
10
  **/
12
11
  declare class List extends Component<ListProps> {
13
12
  static readonly componentId = "List";
14
- static propTypes: {
15
- makeStyles: PropTypes.Requireable<(...args: any[]) => any>;
16
- styles: PropTypes.Requireable<object>;
17
- /**
18
- * Only accepts `<List.Item>` as a child
19
- */
20
- children: {
21
- (props: Record<string, any>, propName: string, componentName: string): Error | null;
22
- isRequired: (props: Record<string, any>, propName: string, componentName: string, location?: string | undefined, propFullName?: string | undefined) => Error | null;
23
- };
24
- as: PropTypes.Requireable<string>;
25
- /**
26
- * One of: none, dashed, solid
27
- */
28
- delimiter: PropTypes.Requireable<string>;
29
- /**
30
- * When set, renders the List Items without a list style type.
31
- */
32
- isUnstyled: PropTypes.Requireable<boolean>;
33
- /**
34
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
35
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
36
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
37
- */
38
- margin: (props: any, propName: any, componentName: any, location: any) => any;
39
- size: PropTypes.Requireable<string>;
40
- /**
41
- * Sets the margin separating each ListItem.
42
- */
43
- itemSpacing: PropTypes.Requireable<string>;
44
- elementRef: PropTypes.Requireable<(...args: any[]) => any>;
45
- };
13
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
14
+ children?: import("react").ReactNode;
15
+ as?: "ol" | "ul" | undefined;
16
+ delimiter?: "none" | "dashed" | "solid" | undefined;
17
+ isUnstyled?: boolean | undefined;
18
+ margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
19
+ size?: "small" | "medium" | "large" | undefined;
20
+ itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
21
+ elementRef?: ((...args: any[]) => any) | undefined;
22
+ }>;
23
+ static allowedProps: readonly (keyof {
24
+ children?: import("react").ReactNode;
25
+ as?: "ol" | "ul" | undefined;
26
+ delimiter?: "none" | "dashed" | "solid" | undefined;
27
+ isUnstyled?: boolean | undefined;
28
+ margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
29
+ size?: "small" | "medium" | "large" | undefined;
30
+ itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
31
+ elementRef?: ((...args: any[]) => any) | undefined;
32
+ })[];
46
33
  static defaultProps: {
47
34
  children: null;
48
35
  as: string;
49
36
  delimiter: string;
50
37
  isUnstyled: boolean;
51
- margin: undefined;
52
38
  size: string;
53
39
  itemSpacing: string;
54
40
  elementRef: (el: any) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/List/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzD,OAAO,SAAS,MAAM,YAAY,CAAA;AAOlC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAa,GAAG,EAAsB,MAAM,sBAAsB,CAAA;AAIzE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC;;;;GAIG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,SAAS;;;QAKd;;WAEG;;;;;;QAGH;;WAEG;;QAEH;;WAEG;;QAEH;;;;WAIG;;;QAGH;;WAEG;;;MAaJ;IAED,MAAM,CAAC,YAAY;;;;;;;;;MAUlB;IAED,MAAM,CAAC,IAAI,kBAAW;IAEtB,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,cAAc;IAad,MAAM;CAgBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/List/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;GAIG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,SAAS;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;MASlB;IAED,MAAM,CAAC,IAAI,kBAAW;IAEtB,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,cAAc;IAad,MAAM;CAgBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,21 @@
1
+ import type { Spacing, WithStyleProps } from '@instructure/emotion';
2
+ import type { PropValidators } from '@instructure/shared-types';
3
+ import React from 'react';
4
+ declare type ListOwnProps = {
5
+ children?: React.ReactNode;
6
+ as?: 'ul' | 'ol';
7
+ delimiter?: 'none' | 'dashed' | 'solid';
8
+ isUnstyled?: boolean;
9
+ margin?: Spacing;
10
+ size?: 'small' | 'medium' | 'large';
11
+ itemSpacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
12
+ elementRef?: (...args: any[]) => any;
13
+ };
14
+ declare type PropKeys = keyof ListOwnProps;
15
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
16
+ declare type ListProps = ListOwnProps & WithStyleProps;
17
+ declare const propTypes: PropValidators<PropKeys>;
18
+ declare const allowedProps: AllowedPropKeys;
19
+ export type { ListProps };
20
+ export { propTypes, allowedProps };
21
+ //# sourceMappingURL=props.d.ts.map