fictoan-react 1.2.7 → 1.2.8
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
CHANGED
package/README.md
CHANGED
|
@@ -57,6 +57,17 @@
|
|
|
57
57
|
}
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
---
|
|
61
|
+
## Contributing
|
|
62
|
+
Make changes to the source code and test them out in the Storybook environment. When ready, create a PR with the changes.
|
|
63
|
+
We’ll merge, and publish a new version to npm.
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Publishing
|
|
67
|
+
```sh
|
|
68
|
+
yarn build && yarn publish
|
|
69
|
+
```
|
|
70
|
+
|
|
60
71
|
---
|
|
61
72
|
|
|
62
73
|
## Storybook
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("../Element/Element.cjs");var t=["kind"];function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},n.apply(this,arguments)}var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("../Element/Element.cjs");var t=["kind","height"];function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},n.apply(this,arguments)}var i=e.forwardRef((function(i,o){var a=i.kind,l=i.height,s=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(i,t),u=[];return a&&u.push(a),e.createElement(r.Element,n({as:"hr","data-hrule":!0,ref:o,classNames:u},s,{style:{height:l}}))}));exports.Divider=i;
|
|
@@ -2,7 +2,8 @@ import React from "react";
|
|
|
2
2
|
import { CommonAndHTMLProps } from "../Element/constants";
|
|
3
3
|
export interface DividerCustomProps {
|
|
4
4
|
kind?: "primary" | "secondary" | "tertiary";
|
|
5
|
+
height?: string;
|
|
5
6
|
}
|
|
6
7
|
export type DividerElementType = HTMLHRElement;
|
|
7
8
|
export type DividerProps = Omit<CommonAndHTMLProps<DividerElementType>, keyof DividerCustomProps> & DividerCustomProps;
|
|
8
|
-
export declare const Divider: React.ForwardRefExoticComponent<Omit<CommonAndHTMLProps<HTMLHRElement>,
|
|
9
|
+
export declare const Divider: React.ForwardRefExoticComponent<Omit<CommonAndHTMLProps<HTMLHRElement>, keyof DividerCustomProps> & DividerCustomProps & React.RefAttributes<HTMLHRElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
2
|
import { Element as e } from "../Element/Element.js";
|
|
3
|
-
var t = ["kind"];
|
|
3
|
+
var t = ["kind", "height"];
|
|
4
4
|
function n() {
|
|
5
5
|
return n = Object.assign ? Object.assign.bind() : function(r2) {
|
|
6
6
|
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
@@ -29,9 +29,9 @@ function o(r2, e2) {
|
|
|
29
29
|
}
|
|
30
30
|
return o2;
|
|
31
31
|
}
|
|
32
|
-
var a = /* @__PURE__ */ r.forwardRef(function(a2,
|
|
33
|
-
var
|
|
34
|
-
return
|
|
32
|
+
var a = /* @__PURE__ */ r.forwardRef(function(a2, i) {
|
|
33
|
+
var l = a2.kind, f = a2.height, c = o(a2, t), s = [];
|
|
34
|
+
return l && s.push(l), /* @__PURE__ */ r.createElement(e, n({ as: "hr", "data-hrule": true, ref: i, classNames: s }, c, { style: { height: f } }));
|
|
35
35
|
});
|
|
36
36
|
export {
|
|
37
37
|
a as Divider
|