@instructure/ui-grid 11.7.4-snapshot-53 → 11.7.4-snapshot-97

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,6 +1,5 @@
1
1
  import type { OtherHTMLAttributes } from '@instructure/shared-types';
2
2
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
- import type { NewComponentTypes } from '@instructure/ui-themes';
4
3
  import type { GridBreakpoints } from '../../utils/v1/GridTypes';
5
4
  type GridOwnProps = {
6
5
  /**
@@ -16,7 +15,7 @@ type GridOwnProps = {
16
15
  };
17
16
  type PropKeys = keyof GridOwnProps;
18
17
  type AllowedPropKeys = Readonly<Array<PropKeys>>;
19
- type GridProps = GridOwnProps & WithStyleProps<ReturnType<NewComponentTypes['Grid']>, GridStyle> & OtherHTMLAttributes<GridOwnProps>;
18
+ type GridProps = GridOwnProps & WithStyleProps<null, GridStyle> & OtherHTMLAttributes<GridOwnProps>;
20
19
  type GridStyle = ComponentStyle<'grid'>;
21
20
  declare const allowedProps: AllowedPropKeys;
22
21
  export type { GridProps, GridStyle };
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Grid/v2/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE/D,KAAK,YAAY,GAAG;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,G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AM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,cAAc,GAAG,eAAe,CAAA;IACtE,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;IAChD,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,YAAY,CAAA;AAElC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,SAAS,GAAG,YAAY,GAC3B,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,GAC/B,mBAAmB,CAAC,YAAY,CAAC,CAAA;AAEnC,KAAK,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AACvC,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,15 +1,15 @@
1
- import type { NewComponentTypes } from '@instructure/ui-themes';
1
+ import type { SharedTokens } from '@instructure/ui-themes';
2
2
  import type { GridProps, GridStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
6
6
  * ---
7
7
  * Generates the style object from the theme and provided additional information
8
- * @param {Object} componentTheme The theme variable object.
9
- * @param {Object} props the props of the component, the style is applied to
10
- * @param {Object} state the state of the component, the style is applied to
11
- * @return {Object} The final style object, which will be used in the component
8
+ * @param _componentTheme unused.
9
+ * @param props the props of the component, the style is applied to
10
+ * @param sharedTokens Shared token object that stores common values for the theme.
11
+ * @return The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes["Grid"]>, props: GridProps) => GridStyle;
13
+ declare const generateStyle: (_componentTheme: never, props: GridProps, sharedTokens: SharedTokens) => GridStyle;
14
14
  export default generateStyle;
15
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Grid/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,EACrD,OAAO,SAAS,KACf,SA0BF,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Grid/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,iBAAiB,KAAK,EACtB,OAAO,SAAS,EAChB,cAAc,YAAY,KACzB,SA0BF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,15 +1,15 @@
1
- import type { NewComponentTypes } from '@instructure/ui-themes';
1
+ import type { NewComponentTypes, SharedTokens } from '@instructure/ui-themes';
2
2
  import type { GridColProps, GridColStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
6
6
  * ---
7
7
  * Generates the style object from the theme and provided additional information
8
- * @param {Object} componentTheme The theme variable object.
9
- * @param {Object} props the props of the component, the style is applied to
10
- * @param {Object} state the state of the component, the style is applied to
11
- * @return {Object} The final style object, which will be used in the component
8
+ * @param componentTheme The theme variable object.
9
+ * @param props the props of the component, the style is applied to
10
+ * @param sharedTokens Shared token object that stores common values for the theme.
11
+ * @return The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes["GridCol"]>, props: GridColProps) => GridColStyle;
13
+ declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes["GridCol"]>, props: GridColProps, sharedTokens: SharedTokens) => GridColStyle;
14
14
  export default generateStyle;
15
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/GridCol/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAIzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,EACxD,OAAO,YAAY,KAClB,YA+KF,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/GridCol/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAIzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,EACxD,OAAO,YAAY,EACnB,cAAc,YAAY,KACzB,YA+KF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,15 +1,15 @@
1
- import type { NewComponentTypes } from '@instructure/ui-themes';
1
+ import type { NewComponentTypes, SharedTokens } from '@instructure/ui-themes';
2
2
  import type { GridRowProps, GridRowStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
6
6
  * ---
7
7
  * Generates the style object from the theme and provided additional information
8
- * @param {Object} componentTheme The theme variable object.
9
- * @param {Object} props the props of the component, the style is applied to
10
- * @param {Object} state the state of the component, the style is applied to
11
- * @return {Object} The final style object, which will be used in the component
8
+ * @param componentTheme The theme variable object.
9
+ * @param props the props of the component, the style is applied to
10
+ * @param sharedTokens Shared token object that stores common values for the theme.
11
+ * @return The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes["GridRow"]>, props: GridRowProps) => GridRowStyle;
13
+ declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes["GridRow"]>, props: GridRowProps, sharedTokens: SharedTokens) => GridRowStyle;
14
14
  export default generateStyle;
15
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/GridRow/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,EACxD,OAAO,YAAY,KAClB,YA4EF,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/GridRow/v2/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,GACjB,gBAAgB,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,EACxD,OAAO,YAAY,EACnB,cAAc,YAAY,KACzB,YA4EF,CAAA;AAED,eAAe,aAAa,CAAA"}