@useblu/ocean-react 1.62.0 → 1.63.0
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/CHANGELOG.md +10 -0
- package/Typography/Typography.d.ts +1 -1
- package/Typography/Typography.d.ts.map +1 -1
- package/index.es.js +4 -2
- package/index.es.js.map +1 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.63.0](https://github.com/ocean-ds/ocean-web/compare/v1.62.2...v1.63.0) (2024-06-20)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- update typography ([#1109](https://github.com/ocean-ds/ocean-web/issues/1109)) ([aed315b](https://github.com/ocean-ds/ocean-web/commit/aed315be06fc0188481a278a5996be6d44d3bb90))
|
|
11
|
+
|
|
12
|
+
## [1.62.1](https://github.com/ocean-ds/ocean-web/compare/v1.62.0...v1.62.1) (2024-06-17)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @useblu/ocean-react
|
|
15
|
+
|
|
6
16
|
# [1.62.0](https://github.com/ocean-ds/ocean-web/compare/v1.61.0...v1.62.0) (2024-06-14)
|
|
7
17
|
|
|
8
18
|
### Features
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const defaultTypesMapping: Record<string, string>;
|
|
3
|
-
export declare type Variant = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'subtitle1' | 'subtitle2' | 'paragraph' | 'lead' | 'description' | 'caption';
|
|
3
|
+
export declare type Variant = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'subtitle1' | 'subtitle2' | 'paragraph' | 'lead' | 'description' | 'caption' | 'captionbold' | 'eyebrow';
|
|
4
4
|
export declare type TypographyProps = {
|
|
5
5
|
variant: Variant;
|
|
6
6
|
inverse?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CActD,CAAC;AAEF,oBAAY,OAAO,GACf,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,GACX,MAAM,GACN,aAAa,GACb,SAAS,GACT,aAAa,GACb,SAAS,CAAC;AAEd,oBAAY,eAAe,GAAG;IAI5B,OAAO,EAAE,OAAO,CAAC;IAKjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAIlB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAE3C,QAAA,MAAM,UAAU;aAZL,OAAO;;cASN,MAAM,SAAS;8KAqB1B,CAAC;AAIF,eAAe,UAAU,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -147,7 +147,9 @@ var defaultTypesMapping = {
|
|
|
147
147
|
paragraph: 'p',
|
|
148
148
|
lead: 'p',
|
|
149
149
|
description: 'p',
|
|
150
|
-
caption: 'p'
|
|
150
|
+
caption: 'p',
|
|
151
|
+
captionbold: 'p',
|
|
152
|
+
eyebrow: 'p'
|
|
151
153
|
};
|
|
152
154
|
var Typography = e.forwardRef(function (_a, ref) {
|
|
153
155
|
var children = _a.children, variant = _a.variant, className = _a.className, _b = _a.inverse, inverse = _b === void 0 ? false : _b, rest = __rest$2(_a, ["children", "variant", "className", "inverse"]);
|
|
@@ -316,7 +318,7 @@ UnorderedListItem.displayName = 'UnorderedListItem';
|
|
|
316
318
|
|
|
317
319
|
var Accordion = function (_a) {
|
|
318
320
|
var title = _a.title, description = _a.description, className = _a.className;
|
|
319
|
-
var _b = useState(
|
|
321
|
+
var _b = useState(true), isCollapsed = _b[0], setIsCollapsed = _b[1];
|
|
320
322
|
var onHandleAccordion = function () {
|
|
321
323
|
setIsCollapsed(function (prevState) { return !prevState; });
|
|
322
324
|
};
|