@instructure/ui-card 0.0.0-stage → 11.7.10-snapshot--1

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.
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {}
4
+ }
@@ -0,0 +1,10 @@
1
+ import type { CardProps } from './props.js';
2
+ /**
3
+ ---
4
+ category: components/Cards
5
+ ---
6
+ **/
7
+ declare const Card: ({ children, variant, themeOverride, ...rest }: CardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export default Card;
9
+ export { Card };
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Card/v1/index.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAG3C;;;;GAIG;AACH,QAAA,MAAM,IAAI,kDAKP,SAAS,qDAcX,CAAA;eAEc,IAAI;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -0,0 +1,23 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ComponentStyle, NewThemeOverrideProp } from '@instructure/emotion';
3
+ import type { OtherHTMLAttributes } from '@instructure/shared-types';
4
+ import type { NewComponentTypes } from '@instructure/ui-themes';
5
+ type CardOwnProps = {
6
+ /**
7
+ * The content to be rendered inside the Card
8
+ */
9
+ children?: ReactNode;
10
+ /**
11
+ * `base` renders card with a background and shadow. `nested` is
12
+ * meant to be placed inside a `base` Card and omits these
13
+ */
14
+ variant?: 'base' | 'nested';
15
+ };
16
+ type PropKeys = keyof CardOwnProps;
17
+ type AllowedPropKeys = Readonly<Array<PropKeys>>;
18
+ type CardProps = CardOwnProps & NewThemeOverrideProp<ReturnType<NewComponentTypes['Card']>> & OtherHTMLAttributes<CardOwnProps>;
19
+ type CardStyle = ComponentStyle<'card' | 'content'>;
20
+ declare const allowedProps: AllowedPropKeys;
21
+ export type { CardProps, CardStyle };
22
+ export { allowedProps };
23
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Card/v1/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,KAAK,YAAY,GAAG;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC5B,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,oBAAoB,CAAC,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,GAC3D,mBAAmB,CAAC,YAAY,CAAC,CAAA;AAEnC,KAAK,SAAS,GAAG,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAEnD,QAAA,MAAM,YAAY,EAAE,eAAyC,CAAA;AAE7D,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { NewComponentTypes } from '@instructure/ui-themes';
2
+ import type { CardProps, CardStyle } from './props';
3
+ /**
4
+ * ---
5
+ * private: true
6
+ * ---
7
+ * Generates the style object from the theme and provided additional information
8
+ * @param componentTheme The theme variable object.
9
+ * @param props the props of the component, the style is applied to
10
+ * @return The final style object, which will be used in the component
11
+ */
12
+ declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes['Card']>, props: CardProps) => CardStyle;
13
+ export default generateStyle;
14
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Card/v1/styles.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnD;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa,mBACD,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,SAC9C,SAAS,KACf,SAgEF,CAAA;eAEc,aAAa"}
@@ -0,0 +1,3 @@
1
+ export { Card } from '../Card/v1/index.js';
2
+ export type { CardProps } from '../Card/v1/props';
3
+ //# sourceMappingURL=a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../../src/exports/a.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA"}