@sebgroup/green-react 1.0.0 → 1.0.2
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 +2 -1
- package/index.esm.js +42 -2
- package/index.umd.js +43 -2
- package/lib/select/select.d.ts +1 -0
- package/package.json +1 -1
- package/types/index.d.ts +1 -0
- package/types/props/index.d.ts +9 -0
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export * from './lib/layout';
|
|
|
3
3
|
export * from './lib/card/card';
|
|
4
4
|
export * from './lib/alert-ribbon/alert-ribbon';
|
|
5
5
|
export * from './lib/form';
|
|
6
|
-
export * from './lib/list
|
|
6
|
+
export * from './lib/list';
|
|
7
7
|
export * from './lib/navbar/navbar';
|
|
8
8
|
export * from './lib/link/link';
|
|
9
9
|
export * from './lib/badge/badge';
|
|
@@ -11,4 +11,5 @@ export * from './lib/stepper/stepper';
|
|
|
11
11
|
export * from './lib/select';
|
|
12
12
|
export * from './lib/dropdown/dropdown';
|
|
13
13
|
export * from './lib/datepicker/datepicker';
|
|
14
|
+
export * from './types';
|
|
14
15
|
export { AlertRibbon as Alert } from './lib/alert-ribbon/alert-ribbon';
|
package/index.esm.js
CHANGED
|
@@ -2540,7 +2540,7 @@ const ListItem = _a => {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
2542
|
|
|
2543
|
-
const List = _a => {
|
|
2543
|
+
const List$1 = _a => {
|
|
2544
2544
|
var {
|
|
2545
2545
|
listType,
|
|
2546
2546
|
tableCaption,
|
|
@@ -2579,6 +2579,46 @@ const List = _a => {
|
|
|
2579
2579
|
}
|
|
2580
2580
|
};
|
|
2581
2581
|
|
|
2582
|
+
const Label = ({
|
|
2583
|
+
children
|
|
2584
|
+
}) => {
|
|
2585
|
+
return jsx("dt", {
|
|
2586
|
+
children: children
|
|
2587
|
+
});
|
|
2588
|
+
};
|
|
2589
|
+
const Value = ({
|
|
2590
|
+
children
|
|
2591
|
+
}) => {
|
|
2592
|
+
return jsx("dd", {
|
|
2593
|
+
children: children
|
|
2594
|
+
});
|
|
2595
|
+
};
|
|
2596
|
+
const List = ({
|
|
2597
|
+
children,
|
|
2598
|
+
inverted
|
|
2599
|
+
}) => {
|
|
2600
|
+
let classNames = 'gds-list';
|
|
2601
|
+
if (inverted) classNames += ' gds-list--inverted';
|
|
2602
|
+
return jsx("dl", Object.assign({
|
|
2603
|
+
className: classNames
|
|
2604
|
+
}, {
|
|
2605
|
+
children: children
|
|
2606
|
+
}));
|
|
2607
|
+
};
|
|
2608
|
+
var valueList = {
|
|
2609
|
+
List,
|
|
2610
|
+
Label,
|
|
2611
|
+
Value
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
var valueList$1 = /*#__PURE__*/Object.freeze({
|
|
2615
|
+
__proto__: null,
|
|
2616
|
+
Label: Label,
|
|
2617
|
+
Value: Value,
|
|
2618
|
+
List: List,
|
|
2619
|
+
'default': valueList
|
|
2620
|
+
});
|
|
2621
|
+
|
|
2582
2622
|
const Link = _a => {
|
|
2583
2623
|
var {
|
|
2584
2624
|
button,
|
|
@@ -3326,4 +3366,4 @@ const Datepicker = (options = {}) => {
|
|
|
3326
3366
|
});
|
|
3327
3367
|
};
|
|
3328
3368
|
|
|
3329
|
-
export { AlertRibbon as Alert, AlertRibbon, Badge, Button, ButtonGroup, Card, Checkbox, Datepicker, Dropdown, EmailInput, Flexbox, Form, FormItems, Group, Link, List, Modal, Navbar, NumberInput, Option, OptionGroup, RadioButton, RadioGroup, RenderInput, Select, Stepper, Text, TextInput };
|
|
3369
|
+
export { AlertRibbon as Alert, AlertRibbon, Badge, Button, ButtonGroup, Card, Checkbox, Datepicker, Dropdown, EmailInput, Flexbox, Form, FormItems, Group, Link, List$1 as List, Modal, Navbar, NumberInput, Option, OptionGroup, RadioButton, RadioGroup, RenderInput, Select, Stepper, Text, TextInput, valueList$1 as ValueList };
|
package/index.umd.js
CHANGED
|
@@ -2546,7 +2546,7 @@
|
|
|
2546
2546
|
}
|
|
2547
2547
|
};
|
|
2548
2548
|
|
|
2549
|
-
const List = _a => {
|
|
2549
|
+
const List$1 = _a => {
|
|
2550
2550
|
var {
|
|
2551
2551
|
listType,
|
|
2552
2552
|
tableCaption,
|
|
@@ -2585,6 +2585,46 @@
|
|
|
2585
2585
|
}
|
|
2586
2586
|
};
|
|
2587
2587
|
|
|
2588
|
+
const Label = ({
|
|
2589
|
+
children
|
|
2590
|
+
}) => {
|
|
2591
|
+
return jsxRuntime.jsx("dt", {
|
|
2592
|
+
children: children
|
|
2593
|
+
});
|
|
2594
|
+
};
|
|
2595
|
+
const Value = ({
|
|
2596
|
+
children
|
|
2597
|
+
}) => {
|
|
2598
|
+
return jsxRuntime.jsx("dd", {
|
|
2599
|
+
children: children
|
|
2600
|
+
});
|
|
2601
|
+
};
|
|
2602
|
+
const List = ({
|
|
2603
|
+
children,
|
|
2604
|
+
inverted
|
|
2605
|
+
}) => {
|
|
2606
|
+
let classNames = 'gds-list';
|
|
2607
|
+
if (inverted) classNames += ' gds-list--inverted';
|
|
2608
|
+
return jsxRuntime.jsx("dl", Object.assign({
|
|
2609
|
+
className: classNames
|
|
2610
|
+
}, {
|
|
2611
|
+
children: children
|
|
2612
|
+
}));
|
|
2613
|
+
};
|
|
2614
|
+
var valueList = {
|
|
2615
|
+
List,
|
|
2616
|
+
Label,
|
|
2617
|
+
Value
|
|
2618
|
+
};
|
|
2619
|
+
|
|
2620
|
+
var valueList$1 = /*#__PURE__*/Object.freeze({
|
|
2621
|
+
__proto__: null,
|
|
2622
|
+
Label: Label,
|
|
2623
|
+
Value: Value,
|
|
2624
|
+
List: List,
|
|
2625
|
+
'default': valueList
|
|
2626
|
+
});
|
|
2627
|
+
|
|
2588
2628
|
const Link = _a => {
|
|
2589
2629
|
var {
|
|
2590
2630
|
button,
|
|
@@ -3347,7 +3387,7 @@
|
|
|
3347
3387
|
exports.FormItems = FormItems;
|
|
3348
3388
|
exports.Group = Group;
|
|
3349
3389
|
exports.Link = Link;
|
|
3350
|
-
exports.List = List;
|
|
3390
|
+
exports.List = List$1;
|
|
3351
3391
|
exports.Modal = Modal;
|
|
3352
3392
|
exports.Navbar = Navbar;
|
|
3353
3393
|
exports.NumberInput = NumberInput;
|
|
@@ -3360,6 +3400,7 @@
|
|
|
3360
3400
|
exports.Stepper = Stepper;
|
|
3361
3401
|
exports.Text = Text;
|
|
3362
3402
|
exports.TextInput = TextInput;
|
|
3403
|
+
exports.ValueList = valueList$1;
|
|
3363
3404
|
|
|
3364
3405
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3365
3406
|
|
package/lib/select/select.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { IValidator } from '@sebgroup/extract';
|
|
3
|
+
import { SelectorAttributesProps, LabelProps } from '../../types';
|
|
3
4
|
export interface SelectProps extends SelectorAttributesProps, LabelProps {
|
|
4
5
|
children: ReactNode;
|
|
5
6
|
validator?: IValidator;
|
package/package.json
CHANGED
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './props';
|