@sebgroup/green-react 1.0.0-beta.8 → 1.0.0-beta.9
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/index.d.ts +1 -0
- package/index.esm.js +27 -1
- package/index.umd.js +25 -0
- package/lib/badge/badge.d.ts +9 -0
- package/lib/datepicker/datepicker.d.ts +2 -0
- package/lib/datepicker/hook.d.ts +12 -0
- package/package.json +3 -3
package/index.d.ts
CHANGED
package/index.esm.js
CHANGED
|
@@ -2517,4 +2517,30 @@ const Navbar = ({
|
|
|
2517
2517
|
}), void 0);
|
|
2518
2518
|
};
|
|
2519
2519
|
|
|
2520
|
-
|
|
2520
|
+
function Badge(_a) {
|
|
2521
|
+
var {
|
|
2522
|
+
title,
|
|
2523
|
+
badgeType,
|
|
2524
|
+
isCloseable,
|
|
2525
|
+
closeText
|
|
2526
|
+
} = _a,
|
|
2527
|
+
props = __rest(_a, ["title", "badgeType", "isCloseable", "closeText"]);
|
|
2528
|
+
|
|
2529
|
+
return jsxs("span", Object.assign({}, props, {
|
|
2530
|
+
className: `badge ${badgeType}`
|
|
2531
|
+
}, {
|
|
2532
|
+
children: [jsx("strong", {
|
|
2533
|
+
children: title
|
|
2534
|
+
}, void 0), isCloseable && jsx("button", Object.assign({
|
|
2535
|
+
className: "close"
|
|
2536
|
+
}, {
|
|
2537
|
+
children: jsx("span", Object.assign({
|
|
2538
|
+
className: "sr-only"
|
|
2539
|
+
}, {
|
|
2540
|
+
children: closeText
|
|
2541
|
+
}), void 0)
|
|
2542
|
+
}), void 0)]
|
|
2543
|
+
}), void 0);
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
export { Alert, Badge, Button, ButtonGroup, Card, Checkbox, EmailInput, Flexbox, Form, FormItems, Group, Link, List, Modal, Navbar, NumberInput, RadioButton, RadioGroup, RenderInput, Text, TextInput };
|
package/index.umd.js
CHANGED
|
@@ -1993,7 +1993,32 @@
|
|
|
1993
1993
|
}), void 0);
|
|
1994
1994
|
};
|
|
1995
1995
|
|
|
1996
|
+
function Badge(_a) {
|
|
1997
|
+
var title = _a.title,
|
|
1998
|
+
badgeType = _a.badgeType,
|
|
1999
|
+
isCloseable = _a.isCloseable,
|
|
2000
|
+
closeText = _a.closeText,
|
|
2001
|
+
props = __rest(_a, ["title", "badgeType", "isCloseable", "closeText"]);
|
|
2002
|
+
|
|
2003
|
+
return jsxRuntime.jsxs("span", __assign({}, props, {
|
|
2004
|
+
className: "badge ".concat(badgeType)
|
|
2005
|
+
}, {
|
|
2006
|
+
children: [jsxRuntime.jsx("strong", {
|
|
2007
|
+
children: title
|
|
2008
|
+
}, void 0), isCloseable && jsxRuntime.jsx("button", __assign({
|
|
2009
|
+
className: "close"
|
|
2010
|
+
}, {
|
|
2011
|
+
children: jsxRuntime.jsx("span", __assign({
|
|
2012
|
+
className: "sr-only"
|
|
2013
|
+
}, {
|
|
2014
|
+
children: closeText
|
|
2015
|
+
}), void 0)
|
|
2016
|
+
}), void 0)]
|
|
2017
|
+
}), void 0);
|
|
2018
|
+
}
|
|
2019
|
+
|
|
1996
2020
|
exports.Alert = Alert;
|
|
2021
|
+
exports.Badge = Badge;
|
|
1997
2022
|
exports.Button = Button;
|
|
1998
2023
|
exports.ButtonGroup = ButtonGroup;
|
|
1999
2024
|
exports.Card = Card;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
export interface BadgeProps extends HTMLProps<HTMLSpanElement> {
|
|
3
|
+
title: string;
|
|
4
|
+
badgeType?: string;
|
|
5
|
+
isCloseable?: boolean;
|
|
6
|
+
closeText?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function Badge({ title, badgeType, isCloseable, closeText, ...props }: BadgeProps): JSX.Element;
|
|
9
|
+
export default Badge;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { Datepicker, DatepickerData, DatepickerOptions, DatepickerState } from '@sebgroup/extract';
|
|
3
|
+
interface HookResult {
|
|
4
|
+
datepicker: Datepicker;
|
|
5
|
+
data: DatepickerData;
|
|
6
|
+
state: DatepickerState;
|
|
7
|
+
}
|
|
8
|
+
interface DatepickerHook {
|
|
9
|
+
(datepickerRef: RefObject<HTMLElement>, datepickerDialogRef: RefObject<HTMLElement>, dateInputRef: RefObject<HTMLInputElement>, options?: DatepickerOptions): HookResult;
|
|
10
|
+
}
|
|
11
|
+
export declare const useDatepicker: DatepickerHook;
|
|
12
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^17.0.0",
|
|
6
6
|
"react-dom": "^17.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@sebgroup/chlorophyll": "^1.0.0-beta.
|
|
10
|
-
"@sebgroup/extract": "^1.0.0-beta.
|
|
9
|
+
"@sebgroup/chlorophyll": "^1.0.0-beta.9",
|
|
10
|
+
"@sebgroup/extract": "^1.0.0-beta.9"
|
|
11
11
|
},
|
|
12
12
|
"description": "React components built on top of @sebgroup/chlorophyll.",
|
|
13
13
|
"repository": {
|