@instructure/ui-list 8.8.1-snapshot.3 → 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 (68) hide show
  1. package/es/InlineList/InlineListItem/index.js +5 -38
  2. package/es/InlineList/InlineListItem/props.js +56 -0
  3. package/es/InlineList/index.js +2 -25
  4. package/{src/InlineList/InlineListItem/types.ts → es/InlineList/props.js} +26 -20
  5. package/es/List/ListItem/index.js +4 -37
  6. package/es/List/ListItem/props.js +56 -0
  7. package/es/List/index.js +4 -41
  8. package/es/List/props.js +60 -0
  9. package/lib/InlineList/InlineListItem/index.js +5 -38
  10. package/lib/InlineList/InlineListItem/props.js +68 -0
  11. package/lib/InlineList/index.js +3 -28
  12. package/lib/InlineList/props.js +65 -0
  13. package/lib/List/ListItem/index.js +4 -37
  14. package/lib/List/ListItem/props.js +68 -0
  15. package/lib/List/index.js +4 -42
  16. package/lib/List/props.js +74 -0
  17. package/package.json +14 -14
  18. package/src/InlineList/InlineListItem/index.tsx +8 -46
  19. package/src/InlineList/InlineListItem/props.ts +105 -0
  20. package/src/InlineList/InlineListItem/styles.ts +1 -1
  21. package/src/InlineList/index.tsx +5 -35
  22. package/src/InlineList/props.ts +102 -0
  23. package/src/List/ListItem/index.tsx +7 -45
  24. package/src/List/ListItem/props.ts +105 -0
  25. package/src/List/ListItem/styles.ts +1 -1
  26. package/src/List/index.tsx +7 -48
  27. package/src/List/props.ts +111 -0
  28. package/src/List/styles.ts +1 -1
  29. package/src/index.ts +4 -4
  30. package/types/InlineList/InlineListItem/index.d.ts +19 -30
  31. package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
  32. package/types/InlineList/InlineListItem/props.d.ts +20 -0
  33. package/types/InlineList/InlineListItem/props.d.ts.map +1 -0
  34. package/types/InlineList/InlineListItem/styles.d.ts +1 -1
  35. package/types/InlineList/index.d.ts +27 -23
  36. package/types/InlineList/index.d.ts.map +1 -1
  37. package/types/InlineList/props.d.ts +20 -0
  38. package/types/InlineList/props.d.ts.map +1 -0
  39. package/types/List/ListItem/index.d.ts +19 -30
  40. package/types/List/ListItem/index.d.ts.map +1 -1
  41. package/types/List/ListItem/props.d.ts +20 -0
  42. package/types/List/ListItem/props.d.ts.map +1 -0
  43. package/types/List/ListItem/styles.d.ts +1 -1
  44. package/types/List/index.d.ts +21 -35
  45. package/types/List/index.d.ts.map +1 -1
  46. package/types/List/props.d.ts +21 -0
  47. package/types/List/props.d.ts.map +1 -0
  48. package/types/List/styles.d.ts +1 -1
  49. package/types/index.d.ts +4 -4
  50. package/es/InlineList/InlineListItem/types.js +0 -1
  51. package/es/InlineList/types.js +0 -1
  52. package/es/List/ListItem/types.js +0 -1
  53. package/es/List/types.js +0 -1
  54. package/lib/InlineList/InlineListItem/types.js +0 -1
  55. package/lib/InlineList/types.js +0 -1
  56. package/lib/List/ListItem/types.js +0 -1
  57. package/lib/List/types.js +0 -1
  58. package/src/InlineList/types.ts +0 -43
  59. package/src/List/ListItem/types.ts +0 -45
  60. package/src/List/types.ts +0 -46
  61. package/types/InlineList/InlineListItem/types.d.ts +0 -12
  62. package/types/InlineList/InlineListItem/types.d.ts.map +0 -1
  63. package/types/InlineList/types.d.ts +0 -10
  64. package/types/InlineList/types.d.ts.map +0 -1
  65. package/types/List/ListItem/types.d.ts +0 -12
  66. package/types/List/ListItem/types.d.ts.map +0 -1
  67. package/types/List/types.d.ts +0 -13
  68. package/types/List/types.d.ts.map +0 -1
@@ -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,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,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/List/props.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,aAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,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,YAAY,CAAA;AAElC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,SAAS,GAAG,YAAY,GAAG,cAAc,CAAA;AAE9C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAoCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eASnB,CAAA;AAED,YAAY,EAAE,SAAS,EAAE,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ListTheme } from '@instructure/shared-types';
2
- import { ListProps } from './types';
2
+ import { ListProps } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
package/types/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { InlineList } from './InlineList';
2
2
  export { List, ListItem } from './List';
3
- export type { InlineListProps } from './InlineList/types';
4
- export type { InlineListItemProps } from './InlineList/InlineListItem/types';
5
- export type { ListProps } from './List/types';
6
- export type { ListItemProps } from './List/ListItem/types';
3
+ export type { InlineListProps } from './InlineList/props';
4
+ export type { InlineListItemProps } from './InlineList/InlineListItem/props';
5
+ export type { ListProps } from './List/props';
6
+ export type { ListItemProps } from './List/ListItem/props';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
package/es/List/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
package/lib/List/types.js DELETED
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,43 +0,0 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- import type { Spacing } from '@instructure/emotion'
26
-
27
- export type InlineListProps = {
28
- as?: 'ul' | 'ol'
29
- margin?: Spacing
30
- size?: 'small' | 'medium' | 'large'
31
- delimiter?: 'none' | 'pipe' | 'slash' | 'arrow'
32
- itemSpacing?:
33
- | 'none'
34
- | 'xxx-small'
35
- | 'xx-small'
36
- | 'x-small'
37
- | 'small'
38
- | 'medium'
39
- | 'large'
40
- | 'x-large'
41
- | 'xx-large'
42
- elementRef?: (...args: any[]) => any
43
- }
@@ -1,45 +0,0 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- import type { Spacing } from '@instructure/emotion'
26
-
27
- export type ListItemProps = {
28
- makeStyles?: (...args: any[]) => any
29
- styles?: any
30
- delimiter?: 'none' | 'dashed' | 'solid'
31
- size?: 'small' | 'medium' | 'large'
32
- margin?: Spacing
33
- padding?: Spacing
34
- spacing?:
35
- | 'none'
36
- | 'xxx-small'
37
- | 'xx-small'
38
- | 'x-small'
39
- | 'small'
40
- | 'medium'
41
- | 'large'
42
- | 'x-large'
43
- | 'xx-large'
44
- elementRef?: (...args: any[]) => any
45
- }