@papillonarts/components 0.24.0 → 0.26.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/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/primer/Alert/Alert.d.ts +2 -2
- package/build/primer/Alert/Alert.d.ts.map +1 -1
- package/build/primer/Alert/Alert.js +34 -32
- package/build/primer/Alert/Alert.type.d.ts +38 -0
- package/build/primer/Alert/Alert.type.d.ts.map +1 -0
- package/build/primer/Alert/Alert.type.js +20 -0
- package/build/primer/Alert/index.d.ts +2 -1
- package/build/primer/Alert/index.d.ts.map +1 -1
- package/build/primer/Alert/index.js +3 -3
- package/build/primer/Blankslate/Blankslate.d.ts +2 -2
- package/build/primer/Blankslate/Blankslate.d.ts.map +1 -1
- package/build/primer/Blankslate/Blankslate.js +5 -5
- package/build/primer/Blankslate/Blankslate.type.d.ts +22 -0
- package/build/primer/Blankslate/Blankslate.type.d.ts.map +1 -0
- package/build/primer/Blankslate/Blankslate.type.js +18 -0
- package/build/primer/Blankslate/index.d.ts +1 -1
- package/build/primer/Blankslate/index.js +3 -3
- package/build/primer/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/build/primer/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/build/primer/Breadcrumb/Breadcrumb.js +4 -4
- package/build/primer/Breadcrumb/Breadcrumb.type.d.ts +30 -0
- package/build/primer/Breadcrumb/Breadcrumb.type.d.ts.map +1 -0
- package/build/primer/Breadcrumb/Breadcrumb.type.js +16 -0
- package/build/primer/Breadcrumb/index.d.ts +1 -1
- package/build/primer/Breadcrumb/index.js +3 -3
- package/build/primer/Button/Button.d.ts +2 -2
- package/build/primer/Button/Button.d.ts.map +1 -1
- package/build/primer/Button/Button.js +23 -23
- package/build/primer/Button/Button.type.d.ts +69 -0
- package/build/primer/Button/Button.type.d.ts.map +1 -0
- package/build/primer/Button/Button.type.js +48 -0
- package/build/primer/Button/index.d.ts +1 -1
- package/build/primer/Button/index.js +13 -13
- package/build/primer/Dropdown/Dropdown.d.ts +2 -2
- package/build/primer/Dropdown/Dropdown.d.ts.map +1 -1
- package/build/primer/Dropdown/Dropdown.js +11 -9
- package/build/primer/Dropdown/Dropdown.type.d.ts +35 -0
- package/build/primer/Dropdown/Dropdown.type.d.ts.map +1 -0
- package/build/primer/Dropdown/Dropdown.type.js +20 -0
- package/build/primer/Dropdown/index.d.ts +1 -1
- package/build/primer/Dropdown/index.js +3 -3
- package/build/primer/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/build/primer/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/build/primer/ErrorBoundary/ErrorBoundary.type.d.ts +4 -0
- package/build/primer/ErrorBoundary/ErrorBoundary.type.d.ts.map +1 -0
- package/build/primer/ErrorBoundary/ErrorBoundary.type.js +5 -0
- package/build/primer/Form/Checkbox/Checkbox.d.ts +2 -2
- package/build/primer/Form/Checkbox/Checkbox.d.ts.map +1 -1
- package/build/primer/Form/Checkbox/Checkbox.js +9 -9
- package/build/primer/Form/Checkbox/Checkbox.type.d.ts +34 -0
- package/build/primer/Form/Checkbox/Checkbox.type.d.ts.map +1 -0
- package/build/primer/Form/Checkbox/Checkbox.type.js +22 -0
- package/build/primer/Form/Checkbox/index.d.ts +1 -1
- package/build/primer/Form/Checkbox/index.js +3 -3
- package/build/primer/Form/Input/Input.d.ts +2 -2
- package/build/primer/Form/Input/Input.d.ts.map +1 -1
- package/build/primer/Form/Input/Input.js +11 -11
- package/build/primer/Form/Input/Input.type.d.ts +44 -0
- package/build/primer/Form/Input/Input.type.d.ts.map +1 -0
- package/build/primer/Form/Input/Input.type.js +30 -0
- package/build/primer/Form/Input/index.d.ts +1 -1
- package/build/primer/Form/Input/index.js +5 -5
- package/build/primer/Form/Radio/Radio.d.ts +2 -2
- package/build/primer/Form/Radio/Radio.d.ts.map +1 -1
- package/build/primer/Form/Radio/Radio.js +9 -9
- package/build/primer/Form/Radio/Radio.type.d.ts +31 -0
- package/build/primer/Form/Radio/Radio.type.d.ts.map +1 -0
- package/build/primer/Form/Radio/Radio.type.js +22 -0
- package/build/primer/Form/Radio/index.d.ts +1 -1
- package/build/primer/Form/Radio/index.js +3 -3
- package/build/primer/Form/index.d.ts +4 -16
- package/build/primer/Form/index.d.ts.map +1 -1
- package/build/primer/Form/index.js +4 -4
- package/build/primer/Grid/DisplayTable/DisplayTable.d.ts +2 -2
- package/build/primer/Grid/DisplayTable/DisplayTable.d.ts.map +1 -1
- package/build/primer/Grid/DisplayTable/DisplayTable.js +4 -4
- package/build/primer/Grid/DisplayTable/DisplayTable.type.d.ts +20 -0
- package/build/primer/Grid/DisplayTable/DisplayTable.type.d.ts.map +1 -0
- package/build/primer/Grid/DisplayTable/DisplayTable.type.js +11 -0
- package/build/primer/Grid/FlexGrid/FlexGrid.d.ts +2 -2
- package/build/primer/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
- package/build/primer/Grid/FlexGrid/FlexGrid.js +25 -20
- package/build/primer/Grid/FlexGrid/FlexGrid.type.d.ts +49 -0
- package/build/primer/Grid/FlexGrid/FlexGrid.type.d.ts.map +1 -0
- package/build/primer/Grid/FlexGrid/FlexGrid.type.js +30 -0
- package/build/primer/Grid/FlexGrid/index.d.ts +2 -1
- package/build/primer/Grid/FlexGrid/index.d.ts.map +1 -1
- package/build/primer/Grid/FlexGrid/index.js +5 -5
- package/build/primer/Grid/index.d.ts +3 -8
- package/build/primer/Grid/index.d.ts.map +1 -1
- package/build/primer/Grid/index.js +2 -2
- package/build/primer/Icon/Icon.d.ts +2 -2
- package/build/primer/Icon/Icon.d.ts.map +1 -1
- package/build/primer/Icon/Icon.js +15 -15
- package/build/primer/Icon/Icon.type.d.ts +686 -0
- package/build/primer/Icon/Icon.type.d.ts.map +1 -0
- package/build/primer/Icon/{Icon.prop.js → Icon.type.js} +26 -26
- package/build/primer/Icon/index.d.ts +1 -1
- package/build/primer/Icon/index.js +5 -5
- package/build/primer/Label/Label.d.ts +2 -2
- package/build/primer/Label/Label.d.ts.map +1 -1
- package/build/primer/Label/Label.js +6 -6
- package/build/primer/Label/Label.type.d.ts +32 -0
- package/build/primer/Label/Label.type.d.ts.map +1 -0
- package/build/primer/Label/Label.type.js +26 -0
- package/build/primer/Loader/Loader.d.ts +2 -2
- package/build/primer/Loader/Loader.d.ts.map +1 -1
- package/build/primer/Loader/Loader.js +6 -6
- package/build/primer/Loader/Loader.type.d.ts +17 -0
- package/build/primer/Loader/Loader.type.d.ts.map +1 -0
- package/build/primer/Loader/Loader.type.js +15 -0
- package/build/primer/Loader/index.d.ts +1 -1
- package/build/primer/Loader/index.js +3 -3
- package/build/primer/Navigation/Menu/Menu.d.ts +2 -2
- package/build/primer/Navigation/Menu/Menu.d.ts.map +1 -1
- package/build/primer/Navigation/Menu/Menu.js +5 -4
- package/build/primer/Navigation/Menu/{Menu.prop.d.ts → Menu.type.d.ts} +11 -10
- package/build/primer/Navigation/Menu/Menu.type.d.ts.map +1 -0
- package/build/primer/Navigation/Menu/Menu.type.js +12 -0
- package/build/primer/Navigation/TabNav/TabNav.d.ts +2 -2
- package/build/primer/Navigation/TabNav/TabNav.d.ts.map +1 -1
- package/build/primer/Navigation/TabNav/TabNav.js +6 -6
- package/build/primer/Navigation/TabNav/TabNav.type.d.ts +41 -0
- package/build/primer/Navigation/TabNav/TabNav.type.d.ts.map +1 -0
- package/build/primer/Navigation/TabNav/TabNav.type.js +18 -0
- package/build/primer/Navigation/TabNav/index.d.ts +1 -1
- package/build/primer/Navigation/TabNav/index.js +3 -3
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.d.ts +2 -2
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.js +11 -10
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.type.d.ts +43 -0
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.type.d.ts.map +1 -0
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.type.js +22 -0
- package/build/primer/Navigation/UnderlineNav/index.d.ts +1 -1
- package/build/primer/Navigation/UnderlineNav/index.js +5 -5
- package/build/primer/Navigation/index.d.ts +3 -12
- package/build/primer/Navigation/index.d.ts.map +1 -1
- package/build/primer/Navigation/index.js +3 -3
- package/build/primer/Pagination/PreviousNext/PreviousNext.d.ts +2 -2
- package/build/primer/Pagination/PreviousNext/PreviousNext.d.ts.map +1 -1
- package/build/primer/Pagination/PreviousNext/PreviousNext.js +9 -9
- package/build/primer/Pagination/PreviousNext/PreviousNext.type.d.ts +38 -0
- package/build/primer/Pagination/PreviousNext/PreviousNext.type.d.ts.map +1 -0
- package/build/primer/Pagination/PreviousNext/PreviousNext.type.js +32 -0
- package/build/primer/Pagination/PreviousNext/index.d.ts +1 -1
- package/build/primer/Pagination/PreviousNext/index.js +3 -3
- package/build/primer/Pagination/index.d.ts +1 -4
- package/build/primer/Pagination/index.d.ts.map +1 -1
- package/build/primer/Pagination/index.js +1 -1
- package/build/primer/Popover/Popover.d.ts +2 -2
- package/build/primer/Popover/Popover.d.ts.map +1 -1
- package/build/primer/Popover/Popover.js +12 -12
- package/build/primer/Popover/Popover.type.d.ts +38 -0
- package/build/primer/Popover/Popover.type.d.ts.map +1 -0
- package/build/primer/Popover/Popover.type.js +29 -0
- package/build/primer/Popover/index.d.ts +1 -1
- package/build/primer/Popover/index.js +5 -5
- package/build/primer/Progress/Progress.d.ts +2 -2
- package/build/primer/Progress/Progress.d.ts.map +1 -1
- package/build/primer/Progress/Progress.js +4 -4
- package/build/primer/Progress/Progress.type.d.ts +17 -0
- package/build/primer/Progress/Progress.type.d.ts.map +1 -0
- package/build/primer/Progress/Progress.type.js +15 -0
- package/build/primer/Progress/index.d.ts +1 -1
- package/build/primer/Progress/index.js +3 -3
- package/build/primer/Select/Select.d.ts +2 -2
- package/build/primer/Select/Select.d.ts.map +1 -1
- package/build/primer/Select/Select.js +5 -5
- package/build/primer/Select/Select.type.d.ts +27 -0
- package/build/primer/Select/Select.type.d.ts.map +1 -0
- package/build/primer/Select/Select.type.js +17 -0
- package/build/primer/Select/index.d.ts +1 -1
- package/build/primer/Select/index.js +3 -3
- package/build/primer/SelectMenu/SelectMenu.d.ts +2 -2
- package/build/primer/SelectMenu/SelectMenu.d.ts.map +1 -1
- package/build/primer/SelectMenu/SelectMenu.js +6 -4
- package/build/primer/SelectMenu/SelectMenu.type.d.ts +25 -0
- package/build/primer/SelectMenu/SelectMenu.type.d.ts.map +1 -0
- package/build/primer/SelectMenu/SelectMenu.type.js +12 -0
- package/build/primer/Subhead/Subhead.d.ts +2 -2
- package/build/primer/Subhead/Subhead.d.ts.map +1 -1
- package/build/primer/Subhead/Subhead.js +3 -3
- package/build/primer/Subhead/Subhead.type.d.ts +11 -0
- package/build/primer/Subhead/Subhead.type.d.ts.map +1 -0
- package/build/primer/Subhead/Subhead.type.js +10 -0
- package/build/primer/Toast/Toast.d.ts +2 -2
- package/build/primer/Toast/Toast.d.ts.map +1 -1
- package/build/primer/Toast/Toast.js +16 -16
- package/build/primer/Toast/Toast.type.d.ts +22 -0
- package/build/primer/Toast/Toast.type.d.ts.map +1 -0
- package/build/primer/Toast/Toast.type.js +18 -0
- package/build/primer/Toast/index.d.ts +1 -1
- package/build/primer/Toast/index.js +3 -3
- package/build/primer/index.d.ts +29 -137
- package/build/primer/index.d.ts.map +1 -1
- package/build/primer/index.js +18 -18
- package/build/primer/type.d.ts +3 -0
- package/build/primer/type.d.ts.map +1 -0
- package/build/primer/type.js +5 -0
- package/package.json +4 -4
- package/build/primer/Alert/Alert.prop.d.ts +0 -36
- package/build/primer/Alert/Alert.prop.d.ts.map +0 -1
- package/build/primer/Alert/Alert.prop.js +0 -20
- package/build/primer/Blankslate/Blankslate.prop.d.ts +0 -20
- package/build/primer/Blankslate/Blankslate.prop.d.ts.map +0 -1
- package/build/primer/Blankslate/Blankslate.prop.js +0 -18
- package/build/primer/Breadcrumb/Breadcrumb.prop.d.ts +0 -28
- package/build/primer/Breadcrumb/Breadcrumb.prop.d.ts.map +0 -1
- package/build/primer/Breadcrumb/Breadcrumb.prop.js +0 -16
- package/build/primer/Button/Button.prop.d.ts +0 -63
- package/build/primer/Button/Button.prop.d.ts.map +0 -1
- package/build/primer/Button/Button.prop.js +0 -48
- package/build/primer/Dropdown/Dropdown.prop.d.ts +0 -36
- package/build/primer/Dropdown/Dropdown.prop.d.ts.map +0 -1
- package/build/primer/Dropdown/Dropdown.prop.js +0 -20
- package/build/primer/ErrorBoundary/ErrorBoundary.prop.d.ts +0 -5
- package/build/primer/ErrorBoundary/ErrorBoundary.prop.d.ts.map +0 -1
- package/build/primer/ErrorBoundary/ErrorBoundary.prop.js +0 -7
- package/build/primer/Form/Checkbox/Checkbox.prop.d.ts +0 -31
- package/build/primer/Form/Checkbox/Checkbox.prop.d.ts.map +0 -1
- package/build/primer/Form/Checkbox/Checkbox.prop.js +0 -22
- package/build/primer/Form/Input/Input.prop.d.ts +0 -43
- package/build/primer/Form/Input/Input.prop.d.ts.map +0 -1
- package/build/primer/Form/Input/Input.prop.js +0 -30
- package/build/primer/Form/Radio/Radio.prop.d.ts +0 -28
- package/build/primer/Form/Radio/Radio.prop.d.ts.map +0 -1
- package/build/primer/Form/Radio/Radio.prop.js +0 -22
- package/build/primer/Grid/DisplayTable/DisplayTable.prop.d.ts +0 -19
- package/build/primer/Grid/DisplayTable/DisplayTable.prop.d.ts.map +0 -1
- package/build/primer/Grid/DisplayTable/DisplayTable.prop.js +0 -11
- package/build/primer/Grid/FlexGrid/FlexGrid.prop.d.ts +0 -53
- package/build/primer/Grid/FlexGrid/FlexGrid.prop.d.ts.map +0 -1
- package/build/primer/Grid/FlexGrid/FlexGrid.prop.js +0 -28
- package/build/primer/Icon/Icon.prop.d.ts +0 -684
- package/build/primer/Icon/Icon.prop.d.ts.map +0 -1
- package/build/primer/Label/Label.prop.d.ts +0 -28
- package/build/primer/Label/Label.prop.d.ts.map +0 -1
- package/build/primer/Label/Label.prop.js +0 -26
- package/build/primer/Loader/Loader.prop.d.ts +0 -15
- package/build/primer/Loader/Loader.prop.d.ts.map +0 -1
- package/build/primer/Loader/Loader.prop.js +0 -15
- package/build/primer/Navigation/Menu/Menu.prop.d.ts.map +0 -1
- package/build/primer/Navigation/Menu/Menu.prop.js +0 -12
- package/build/primer/Navigation/TabNav/TabNav.prop.d.ts +0 -38
- package/build/primer/Navigation/TabNav/TabNav.prop.d.ts.map +0 -1
- package/build/primer/Navigation/TabNav/TabNav.prop.js +0 -18
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.prop.d.ts +0 -40
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.prop.d.ts.map +0 -1
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.prop.js +0 -22
- package/build/primer/Pagination/PreviousNext/PreviousNext.prop.d.ts +0 -49
- package/build/primer/Pagination/PreviousNext/PreviousNext.prop.d.ts.map +0 -1
- package/build/primer/Pagination/PreviousNext/PreviousNext.prop.js +0 -30
- package/build/primer/Popover/Popover.prop.d.ts +0 -35
- package/build/primer/Popover/Popover.prop.d.ts.map +0 -1
- package/build/primer/Popover/Popover.prop.js +0 -29
- package/build/primer/Progress/Progress.prop.d.ts +0 -15
- package/build/primer/Progress/Progress.prop.d.ts.map +0 -1
- package/build/primer/Progress/Progress.prop.js +0 -15
- package/build/primer/Select/Select.prop.d.ts +0 -25
- package/build/primer/Select/Select.prop.d.ts.map +0 -1
- package/build/primer/Select/Select.prop.js +0 -17
- package/build/primer/SelectMenu/SelectMenu.prop.d.ts +0 -25
- package/build/primer/SelectMenu/SelectMenu.prop.d.ts.map +0 -1
- package/build/primer/SelectMenu/SelectMenu.prop.js +0 -12
- package/build/primer/Subhead/Subhead.prop.d.ts +0 -10
- package/build/primer/Subhead/Subhead.prop.d.ts.map +0 -1
- package/build/primer/Subhead/Subhead.prop.js +0 -10
- package/build/primer/Toast/Toast.prop.d.ts +0 -20
- package/build/primer/Toast/Toast.prop.d.ts.map +0 -1
- package/build/primer/Toast/Toast.prop.js +0 -18
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InputType = exports.InputState = exports.InputDefault = void 0;
|
|
7
|
+
var InputState = exports.InputState = {
|
|
8
|
+
Active: 'active',
|
|
9
|
+
Inactive: 'inactive'
|
|
10
|
+
};
|
|
11
|
+
var InputType = exports.InputType = {
|
|
12
|
+
Text: 'text',
|
|
13
|
+
Password: 'password'
|
|
14
|
+
};
|
|
15
|
+
var InputDefault = exports.InputDefault = {
|
|
16
|
+
DataTest: null,
|
|
17
|
+
Id: null,
|
|
18
|
+
ClassName: null,
|
|
19
|
+
Placeholder: null,
|
|
20
|
+
AriaAttr: {
|
|
21
|
+
label: ''
|
|
22
|
+
},
|
|
23
|
+
InputType: InputType.Text,
|
|
24
|
+
OnChange: function OnChange() {},
|
|
25
|
+
OnKeyUp: function OnKeyUp() {},
|
|
26
|
+
OnFocus: function OnFocus() {},
|
|
27
|
+
OnBlur: function OnBlur() {},
|
|
28
|
+
AutoFocus: false,
|
|
29
|
+
State: InputState.Active
|
|
30
|
+
};
|
|
@@ -9,17 +9,17 @@ Object.defineProperty(exports, "Input", {
|
|
|
9
9
|
return _Input.Input;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "InputState", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return _Input2.
|
|
15
|
+
return _Input2.InputState;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "InputType", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return _Input2.
|
|
21
|
+
return _Input2.InputType;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
var _Input = require("./Input");
|
|
25
|
-
var _Input2 = require("./Input.
|
|
25
|
+
var _Input2 = require("./Input.type");
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function Radio({ dataTest, className, htmlFor, inputType, name, isChecked, text, onChange, state, }:
|
|
1
|
+
import { IRadio } from './Radio.type';
|
|
2
|
+
export declare function Radio({ dataTest, className, htmlFor, inputType, name, isChecked, text, onChange, state, }: IRadio): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/primer/Form/Radio/Radio.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/primer/Form/Radio/Radio.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAA4B,MAAM,cAAc,CAAA;AAI/D,wBAAgB,KAAK,CAAC,EACpB,QAAgC,EAChC,SAAkC,EAClC,OAA8B,EAC9B,SAAkC,EAClC,IAAI,EACJ,SAAkC,EAClC,IAAwB,EACxB,QAAQ,EACR,KAA0B,GAC3B,EAAE,MAAM,2CAqBR"}
|
|
@@ -8,30 +8,30 @@ exports.Radio = Radio;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _margin = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/margin.scss"));
|
|
11
|
-
var _Radio = require("./Radio.
|
|
11
|
+
var _Radio = require("./Radio.type");
|
|
12
12
|
var _Radio2 = _interopRequireDefault(require("./Radio.scss"));
|
|
13
13
|
var _index = _interopRequireDefault(require("../index.scss"));
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
function Radio(_ref) {
|
|
16
16
|
var _ref$dataTest = _ref.dataTest,
|
|
17
|
-
dataTest = _ref$dataTest === void 0 ? _Radio.
|
|
17
|
+
dataTest = _ref$dataTest === void 0 ? _Radio.RadioDefault.DataTest : _ref$dataTest,
|
|
18
18
|
_ref$className = _ref.className,
|
|
19
|
-
className = _ref$className === void 0 ? _Radio.
|
|
19
|
+
className = _ref$className === void 0 ? _Radio.RadioDefault.ClassName : _ref$className,
|
|
20
20
|
_ref$htmlFor = _ref.htmlFor,
|
|
21
|
-
htmlFor = _ref$htmlFor === void 0 ? _Radio.
|
|
21
|
+
htmlFor = _ref$htmlFor === void 0 ? _Radio.RadioDefault.HtmlFor : _ref$htmlFor,
|
|
22
22
|
_ref$inputType = _ref.inputType,
|
|
23
|
-
inputType = _ref$inputType === void 0 ? _Radio.
|
|
23
|
+
inputType = _ref$inputType === void 0 ? _Radio.RadioDefault.InputType : _ref$inputType,
|
|
24
24
|
name = _ref.name,
|
|
25
25
|
_ref$isChecked = _ref.isChecked,
|
|
26
|
-
isChecked = _ref$isChecked === void 0 ? _Radio.
|
|
26
|
+
isChecked = _ref$isChecked === void 0 ? _Radio.RadioDefault.IsChecked : _ref$isChecked,
|
|
27
27
|
_ref$text = _ref.text,
|
|
28
|
-
text = _ref$text === void 0 ? _Radio.
|
|
28
|
+
text = _ref$text === void 0 ? _Radio.RadioDefault.Text : _ref$text,
|
|
29
29
|
_onChange = _ref.onChange,
|
|
30
30
|
_ref$state = _ref.state,
|
|
31
|
-
state = _ref$state === void 0 ? _Radio.
|
|
31
|
+
state = _ref$state === void 0 ? _Radio.RadioDefault.State : _ref$state;
|
|
32
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
33
33
|
"data-test": dataTest,
|
|
34
|
-
className: (0, _classnames["default"])(className, _margin["default"]['m-0'], _index["default"]['form-checkbox'], (0, _defineProperty2["default"])({}, _Radio2["default"]['radio-inactive'], state === _Radio.
|
|
34
|
+
className: (0, _classnames["default"])(className, _margin["default"]['m-0'], _index["default"]['form-checkbox'], (0, _defineProperty2["default"])({}, _Radio2["default"]['radio-inactive'], state === _Radio.RadioState.Inactive)),
|
|
35
35
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
|
|
36
36
|
htmlFor: htmlFor,
|
|
37
37
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface IRadioState {
|
|
2
|
+
Active: 'active';
|
|
3
|
+
Inactive: 'inactive';
|
|
4
|
+
}
|
|
5
|
+
export declare const RadioState: IRadioState;
|
|
6
|
+
export interface IInputType {
|
|
7
|
+
Radio: 'radio';
|
|
8
|
+
}
|
|
9
|
+
export declare const InputType: IInputType;
|
|
10
|
+
export interface IRadioDefault {
|
|
11
|
+
DataTest: string;
|
|
12
|
+
ClassName: string;
|
|
13
|
+
HtmlFor: string;
|
|
14
|
+
InputType: string;
|
|
15
|
+
IsChecked: boolean;
|
|
16
|
+
Text: string;
|
|
17
|
+
State: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const RadioDefault: IRadioDefault;
|
|
20
|
+
export interface IRadio {
|
|
21
|
+
dataTest?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
htmlFor?: string;
|
|
24
|
+
inputType?: string;
|
|
25
|
+
name: string;
|
|
26
|
+
isChecked?: boolean;
|
|
27
|
+
text?: string;
|
|
28
|
+
onChange: (value: any) => void;
|
|
29
|
+
state?: string;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Radio.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.type.d.ts","sourceRoot":"","sources":["../../../../src/primer/Form/Radio/Radio.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,QAAQ,CAAA;IAChB,QAAQ,EAAE,UAAU,CAAA;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,WAGxB,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,OAAO,CAAA;CACf;AAED,eAAO,MAAM,SAAS,EAAE,UAEvB,CAAA;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,YAAY,EAAE,aAQ1B,CAAA;AAED,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RadioState = exports.RadioDefault = exports.InputType = void 0;
|
|
7
|
+
var RadioState = exports.RadioState = {
|
|
8
|
+
Active: 'active',
|
|
9
|
+
Inactive: 'inactive'
|
|
10
|
+
};
|
|
11
|
+
var InputType = exports.InputType = {
|
|
12
|
+
Radio: 'radio'
|
|
13
|
+
};
|
|
14
|
+
var RadioDefault = exports.RadioDefault = {
|
|
15
|
+
DataTest: null,
|
|
16
|
+
ClassName: null,
|
|
17
|
+
HtmlFor: 'checkbox',
|
|
18
|
+
InputType: InputType.Radio,
|
|
19
|
+
IsChecked: false,
|
|
20
|
+
Text: null,
|
|
21
|
+
State: RadioState.Active
|
|
22
|
+
};
|
|
@@ -9,11 +9,11 @@ Object.defineProperty(exports, "Radio", {
|
|
|
9
9
|
return _Radio.Radio;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "RadioState", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return _Radio2.
|
|
15
|
+
return _Radio2.RadioState;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
var _Radio = require("./Radio");
|
|
19
|
-
var _Radio2 = require("./Radio.
|
|
19
|
+
var _Radio2 = require("./Radio.type");
|
|
@@ -4,28 +4,16 @@ import { Radio } from './Radio';
|
|
|
4
4
|
export declare const Form: {
|
|
5
5
|
Checkbox: {
|
|
6
6
|
Checkbox: typeof Checkbox;
|
|
7
|
-
|
|
8
|
-
active: string;
|
|
9
|
-
inactive: string;
|
|
10
|
-
};
|
|
7
|
+
CheckboxState: import("./Checkbox/Checkbox.type").ICheckboxState;
|
|
11
8
|
};
|
|
12
9
|
Input: {
|
|
13
10
|
Input: typeof Input;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
password: string;
|
|
17
|
-
};
|
|
18
|
-
inputState: {
|
|
19
|
-
active: string;
|
|
20
|
-
inactive: string;
|
|
21
|
-
};
|
|
11
|
+
InputType: import("./Input/Input.type").IInputType;
|
|
12
|
+
InputState: import("./Input/Input.type").IInputState;
|
|
22
13
|
};
|
|
23
14
|
Radio: {
|
|
24
15
|
Radio: typeof Radio;
|
|
25
|
-
|
|
26
|
-
active: string;
|
|
27
|
-
inactive: string;
|
|
28
|
-
};
|
|
16
|
+
RadioState: import("./Radio/Radio.type").IRadioState;
|
|
29
17
|
};
|
|
30
18
|
};
|
|
31
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primer/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,KAAK,EAAyB,MAAM,SAAS,CAAA;AACtD,OAAO,EAAE,KAAK,EAAc,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primer/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,KAAK,EAAyB,MAAM,SAAS,CAAA;AACtD,OAAO,EAAE,KAAK,EAAc,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,IAAI;;;;;;;;;;;;;;CAchB,CAAA"}
|
|
@@ -10,15 +10,15 @@ var _Radio = require("./Radio");
|
|
|
10
10
|
var Form = exports.Form = {
|
|
11
11
|
Checkbox: {
|
|
12
12
|
Checkbox: _Checkbox.Checkbox,
|
|
13
|
-
|
|
13
|
+
CheckboxState: _Checkbox.CheckboxState
|
|
14
14
|
},
|
|
15
15
|
Input: {
|
|
16
16
|
Input: _Input.Input,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
InputType: _Input.InputType,
|
|
18
|
+
InputState: _Input.InputState
|
|
19
19
|
},
|
|
20
20
|
Radio: {
|
|
21
21
|
Radio: _Radio.Radio,
|
|
22
|
-
|
|
22
|
+
RadioState: _Radio.RadioState
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function DisplayTable({ className, items, idIndex, isSelectedIndex, }:
|
|
1
|
+
import { IDisplayTable } from './DisplayTable.type';
|
|
2
|
+
export declare function DisplayTable({ className, items, idIndex, isSelectedIndex, }: IDisplayTable): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=DisplayTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayTable.d.ts","sourceRoot":"","sources":["../../../../src/primer/Grid/DisplayTable/DisplayTable.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DisplayTable.d.ts","sourceRoot":"","sources":["../../../../src/primer/Grid/DisplayTable/DisplayTable.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAuB,MAAM,qBAAqB,CAAA;AAExE,wBAAgB,YAAY,CAAC,EAC3B,SAAyC,EACzC,KAAK,EACL,OAAqC,EACrC,eAAqD,GACtD,EAAE,aAAa,2CAmDf"}
|
|
@@ -14,16 +14,16 @@ var _padding = _interopRequireDefault(require("@papillonarts/css/build/primer/ut
|
|
|
14
14
|
var _typography = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/typography.scss"));
|
|
15
15
|
var _colors = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/colors.scss"));
|
|
16
16
|
var _grid = _interopRequireDefault(require("../../Layout/grid.scss"));
|
|
17
|
-
var _DisplayTable = require("./DisplayTable.
|
|
17
|
+
var _DisplayTable = require("./DisplayTable.type");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
function DisplayTable(_ref) {
|
|
20
20
|
var _ref$className = _ref.className,
|
|
21
|
-
className = _ref$className === void 0 ? _DisplayTable.
|
|
21
|
+
className = _ref$className === void 0 ? _DisplayTable.DisplayTableDefault.ClassName : _ref$className,
|
|
22
22
|
items = _ref.items,
|
|
23
23
|
_ref$idIndex = _ref.idIndex,
|
|
24
|
-
idIndex = _ref$idIndex === void 0 ? _DisplayTable.
|
|
24
|
+
idIndex = _ref$idIndex === void 0 ? _DisplayTable.DisplayTableDefault.IdIndex : _ref$idIndex,
|
|
25
25
|
_ref$isSelectedIndex = _ref.isSelectedIndex,
|
|
26
|
-
isSelectedIndex = _ref$isSelectedIndex === void 0 ? _DisplayTable.
|
|
26
|
+
isSelectedIndex = _ref$isSelectedIndex === void 0 ? _DisplayTable.DisplayTableDefault.IsSelectedIndex : _ref$isSelectedIndex;
|
|
27
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
28
28
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
29
|
className: (0, _classnames["default"])(className, _visibilityDisplay["default"]['d-table'], _grid["default"]['col-12'], _colors["default"]['bg-blue-light']),
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface IDisplayTableDefault {
|
|
2
|
+
ClassName: string;
|
|
3
|
+
IdIndex: number;
|
|
4
|
+
IsSelectedIndex: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const DisplayTableDefault: IDisplayTableDefault;
|
|
7
|
+
export interface IValue {
|
|
8
|
+
value: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface IItem {
|
|
11
|
+
names: React.ReactNode[];
|
|
12
|
+
values: IValue[] | React.ReactNode[];
|
|
13
|
+
}
|
|
14
|
+
export interface IDisplayTable {
|
|
15
|
+
className: string;
|
|
16
|
+
items: IItem[];
|
|
17
|
+
idIndex: number;
|
|
18
|
+
isSelectedIndex: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=DisplayTable.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisplayTable.type.d.ts","sourceRoot":"","sources":["../../../../src/primer/Grid/DisplayTable/DisplayTable.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,mBAAmB,EAAE,oBAIjC,CAAA;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;IACxB,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;CACxB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function FlexGrid({ className, items, idIndex, isSelectedIndex, selection, sort, onChange, onClick, onDoubleClick, iconColor, state, }:
|
|
1
|
+
import { IFlexGrid } from './FlexGrid.type';
|
|
2
|
+
export declare function FlexGrid({ className, items, idIndex, isSelectedIndex, selection, sort, onChange, onClick, onDoubleClick, iconColor, state, }: IFlexGrid): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=FlexGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlexGrid.d.ts","sourceRoot":"","sources":["../../../../src/primer/Grid/FlexGrid/FlexGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlexGrid.d.ts","sourceRoot":"","sources":["../../../../src/primer/Grid/FlexGrid/FlexGrid.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAqD,MAAM,iBAAiB,CAAA;AAM9F,wBAAgB,QAAQ,CAAC,EACvB,SAAqC,EACrC,KAAK,EACL,OAAiC,EACjC,eAAiD,EACjD,SAAqC,EACrC,IAAI,EACJ,QAAmC,EACnC,OAAiC,EACjC,aAA6C,EAC7C,SAAqC,EACrC,KAA6B,GAC9B,EAAE,SAAS,2CAgPX"}
|
|
@@ -22,43 +22,47 @@ var _layout = _interopRequireDefault(require("@papillonarts/css/build/primer/uti
|
|
|
22
22
|
var _colors = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/colors.scss"));
|
|
23
23
|
var _index = _interopRequireDefault(require("@papillonarts/css/build/primer/truncate/index.scss"));
|
|
24
24
|
var _grid = _interopRequireDefault(require("../../Layout/grid.scss"));
|
|
25
|
-
var _FlexGrid = require("./FlexGrid.
|
|
25
|
+
var _FlexGrid = require("./FlexGrid.type");
|
|
26
26
|
var _FlexGrid2 = _interopRequireDefault(require("./FlexGrid.scss"));
|
|
27
27
|
var _Radio = require("../../Form/Radio");
|
|
28
28
|
var _Checkbox = require("../../Form/Checkbox");
|
|
29
29
|
var _Icon = require("../../Icon");
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
+
// import { getCapizalizedString } from '../../../../../library/src/string'
|
|
32
|
+
|
|
33
|
+
// import { SortOrder } from '../../../../../library/src/sort'
|
|
34
|
+
|
|
31
35
|
function FlexGrid(_ref) {
|
|
32
36
|
var _items$;
|
|
33
37
|
var _ref$className = _ref.className,
|
|
34
|
-
className = _ref$className === void 0 ? _FlexGrid.
|
|
38
|
+
className = _ref$className === void 0 ? _FlexGrid.FlexGridDefault.ClassName : _ref$className,
|
|
35
39
|
items = _ref.items,
|
|
36
40
|
_ref$idIndex = _ref.idIndex,
|
|
37
|
-
idIndex = _ref$idIndex === void 0 ? _FlexGrid.
|
|
41
|
+
idIndex = _ref$idIndex === void 0 ? _FlexGrid.FlexGridDefault.IdIndex : _ref$idIndex,
|
|
38
42
|
_ref$isSelectedIndex = _ref.isSelectedIndex,
|
|
39
|
-
isSelectedIndex = _ref$isSelectedIndex === void 0 ? _FlexGrid.
|
|
43
|
+
isSelectedIndex = _ref$isSelectedIndex === void 0 ? _FlexGrid.FlexGridDefault.IsSelectedIndex : _ref$isSelectedIndex,
|
|
40
44
|
_ref$selection = _ref.selection,
|
|
41
|
-
selection = _ref$selection === void 0 ? _FlexGrid.
|
|
45
|
+
selection = _ref$selection === void 0 ? _FlexGrid.FlexGridDefault.Selection : _ref$selection,
|
|
42
46
|
sort = _ref.sort,
|
|
43
47
|
_ref$onChange = _ref.onChange,
|
|
44
|
-
_onChange = _ref$onChange === void 0 ? _FlexGrid.
|
|
48
|
+
_onChange = _ref$onChange === void 0 ? _FlexGrid.FlexGridDefault.OnChange : _ref$onChange,
|
|
45
49
|
_ref$onClick = _ref.onClick,
|
|
46
|
-
_onClick = _ref$onClick === void 0 ? _FlexGrid.
|
|
50
|
+
_onClick = _ref$onClick === void 0 ? _FlexGrid.FlexGridDefault.OnClick : _ref$onClick,
|
|
47
51
|
_ref$onDoubleClick = _ref.onDoubleClick,
|
|
48
|
-
_onDoubleClick = _ref$onDoubleClick === void 0 ? _FlexGrid.
|
|
52
|
+
_onDoubleClick = _ref$onDoubleClick === void 0 ? _FlexGrid.FlexGridDefault.OnDoubleClick : _ref$onDoubleClick,
|
|
49
53
|
_ref$iconColor = _ref.iconColor,
|
|
50
|
-
iconColor = _ref$iconColor === void 0 ? _FlexGrid.
|
|
54
|
+
iconColor = _ref$iconColor === void 0 ? _FlexGrid.FlexGridDefault.IconColor : _ref$iconColor,
|
|
51
55
|
_ref$state = _ref.state,
|
|
52
|
-
state = _ref$state === void 0 ? _FlexGrid.
|
|
56
|
+
state = _ref$state === void 0 ? _FlexGrid.FlexGridDefault.State : _ref$state;
|
|
53
57
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
54
|
-
className: (0, _classnames["default"])(className, (0, _defineProperty2["default"])({}, _FlexGrid2["default"]['flexGrid-inactive'], state === _FlexGrid.
|
|
58
|
+
className: (0, _classnames["default"])(className, (0, _defineProperty2["default"])({}, _FlexGrid2["default"]['flexGrid-inactive'], state === _FlexGrid.FlexGridState.Inactive)),
|
|
55
59
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
56
60
|
className: (0, _classnames["default"])(_visibilityDisplay["default"]['d-flex'], _flexbox["default"]['flex-row'], _flexbox["default"]['flex-items-start'], _colors["default"]['bg-blue-light'], (0, _defineProperty2["default"])({}, _borders["default"].border, items === null || items === void 0 ? void 0 : items[0])),
|
|
57
61
|
children: items === null || items === void 0 || (_items$ = items[0]) === null || _items$ === void 0 || (_items$ = _items$.names) === null || _items$ === void 0 ? void 0 : _items$.map(function (name, nameIndex) {
|
|
58
62
|
var _items$2;
|
|
59
63
|
var isIdColumn = nameIndex === idIndex;
|
|
60
64
|
var isSelectedColumn = nameIndex === isSelectedIndex;
|
|
61
|
-
var isSelectedComponent = selection === _FlexGrid.
|
|
65
|
+
var isSelectedComponent = selection === _FlexGrid.FlexGridSelection.Radio ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox.Checkbox, {
|
|
62
66
|
ariaAttr: {
|
|
63
67
|
describedBy: name.toString()
|
|
64
68
|
},
|
|
@@ -87,14 +91,14 @@ function FlexGrid(_ref) {
|
|
|
87
91
|
if (sort.index === nameIndex && sort.value === name) {
|
|
88
92
|
if (sort.order === _sort.SortOrder.Ascending) {
|
|
89
93
|
sortComponent = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
90
|
-
icon: _Icon.
|
|
91
|
-
size: _Icon.
|
|
94
|
+
icon: _Icon.IconName.TriangleUp16,
|
|
95
|
+
size: _Icon.IconSize.Small,
|
|
92
96
|
fill: iconColor.sort
|
|
93
97
|
});
|
|
94
98
|
} else {
|
|
95
99
|
sortComponent = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
96
|
-
icon: _Icon.
|
|
97
|
-
size: _Icon.
|
|
100
|
+
icon: _Icon.IconName.TriangleDown16,
|
|
101
|
+
size: _Icon.IconSize.Small,
|
|
98
102
|
fill: iconColor.sort
|
|
99
103
|
});
|
|
100
104
|
}
|
|
@@ -120,7 +124,8 @@ function FlexGrid(_ref) {
|
|
|
120
124
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
121
125
|
className: (0, _classnames["default"])(_index["default"]['css-truncate'], _index["default"]['css-truncate-overflow']),
|
|
122
126
|
children: (0, _string.getCapizalizedString)({
|
|
123
|
-
string: name
|
|
127
|
+
string: name.toString(),
|
|
128
|
+
separator: '-'
|
|
124
129
|
})
|
|
125
130
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
126
131
|
className: (0, _classnames["default"])(_visibilityDisplay["default"]['d-flex'], _flexbox["default"]['flex-items-start'], _margin["default"]['ml-1']),
|
|
@@ -167,7 +172,7 @@ function FlexGrid(_ref) {
|
|
|
167
172
|
children: item.values.map(function (value, valueIndex) {
|
|
168
173
|
var isIdColumn = valueIndex === idIndex;
|
|
169
174
|
var isSelectedColumn = valueIndex === isSelectedIndex;
|
|
170
|
-
var isSelectedComponent = selection === _FlexGrid.
|
|
175
|
+
var isSelectedComponent = selection === _FlexGrid.FlexGridSelection.Radio ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Radio.Radio, {
|
|
171
176
|
name: "isSelected",
|
|
172
177
|
isChecked: item.values[isSelectedIndex] === true,
|
|
173
178
|
onChange: function onChange(event) {
|
|
@@ -218,8 +223,8 @@ function FlexGrid(_ref) {
|
|
|
218
223
|
}
|
|
219
224
|
});
|
|
220
225
|
var iconComponent = value !== null && value !== void 0 && value.icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
221
|
-
icon: _Icon.
|
|
222
|
-
size: _Icon.
|
|
226
|
+
icon: _Icon.IconName[value.icon],
|
|
227
|
+
size: _Icon.IconSize.Small,
|
|
223
228
|
fill: iconColor.object
|
|
224
229
|
}) : null;
|
|
225
230
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ISort } from '@papillonarts/library/sort/type';
|
|
2
|
+
export interface IFlexGridState {
|
|
3
|
+
Active: string;
|
|
4
|
+
Inactive: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const FlexGridState: IFlexGridState;
|
|
7
|
+
export interface IFlexGridSelection {
|
|
8
|
+
Checkbox: string;
|
|
9
|
+
Radio: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const FlexGridSelection: IFlexGridSelection;
|
|
12
|
+
export interface IIconColor {
|
|
13
|
+
sort: string;
|
|
14
|
+
object: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IFlexGridDefault {
|
|
17
|
+
ClassName: string;
|
|
18
|
+
IdIndex: number;
|
|
19
|
+
IsSelectedIndex: number;
|
|
20
|
+
Selection: string;
|
|
21
|
+
OnChange: () => void;
|
|
22
|
+
OnClick: () => void;
|
|
23
|
+
OnDoubleClick: () => void;
|
|
24
|
+
IconColor: IIconColor;
|
|
25
|
+
State: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const FlexGridDefault: IFlexGridDefault;
|
|
28
|
+
export interface IFlexGridItemValue {
|
|
29
|
+
value: React.ReactNode;
|
|
30
|
+
icon: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export interface IFlexGridItem {
|
|
33
|
+
names: React.ReactNode[];
|
|
34
|
+
values: IFlexGridItemValue[] | React.ReactNode[];
|
|
35
|
+
}
|
|
36
|
+
export interface IFlexGrid {
|
|
37
|
+
className?: string;
|
|
38
|
+
items: IFlexGridItem[];
|
|
39
|
+
idIndex?: number;
|
|
40
|
+
isSelectedIndex?: number;
|
|
41
|
+
selection?: string;
|
|
42
|
+
sort: ISort;
|
|
43
|
+
onChange?: (value: any) => void;
|
|
44
|
+
onClick?: (value: any) => void;
|
|
45
|
+
onDoubleClick?: (value: any) => void;
|
|
46
|
+
iconColor?: IIconColor;
|
|
47
|
+
state?: string;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=FlexGrid.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlexGrid.type.d.ts","sourceRoot":"","sources":["../../../../src/primer/Grid/FlexGrid/FlexGrid.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAA;AAGvD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,iBAAiB,EAAE,kBAG/B,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,UAAU,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,eAAe,EAAE,gBAa7B,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;IACxB,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CACjD;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,aAAa,EAAE,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,QAAQ,CAAC,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IAC1B,OAAO,CAAC,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IACzB,aAAa,CAAC,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IAC/B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FlexGridState = exports.FlexGridSelection = exports.FlexGridDefault = void 0;
|
|
7
|
+
// import { ISort } from '../../../../../library/src/sort/type'
|
|
8
|
+
|
|
9
|
+
var FlexGridState = exports.FlexGridState = {
|
|
10
|
+
Active: 'active',
|
|
11
|
+
Inactive: 'inactive'
|
|
12
|
+
};
|
|
13
|
+
var FlexGridSelection = exports.FlexGridSelection = {
|
|
14
|
+
Checkbox: 'checkbox',
|
|
15
|
+
Radio: 'radio'
|
|
16
|
+
};
|
|
17
|
+
var FlexGridDefault = exports.FlexGridDefault = {
|
|
18
|
+
ClassName: null,
|
|
19
|
+
IdIndex: -1,
|
|
20
|
+
IsSelectedIndex: -1,
|
|
21
|
+
Selection: FlexGridSelection.Checkbox,
|
|
22
|
+
OnChange: function OnChange() {},
|
|
23
|
+
OnClick: function OnClick() {},
|
|
24
|
+
OnDoubleClick: function OnDoubleClick() {},
|
|
25
|
+
IconColor: {
|
|
26
|
+
sort: '#990000',
|
|
27
|
+
object: '#79b8ff'
|
|
28
|
+
},
|
|
29
|
+
State: FlexGridState.Active
|
|
30
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { FlexGrid } from './FlexGrid';
|
|
2
|
-
export {
|
|
2
|
+
export { FlexGridSelection, FlexGridState } from './FlexGrid.type';
|
|
3
|
+
export type { IFlexGridItem } from './FlexGrid.type';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/primer/Grid/FlexGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/primer/Grid/FlexGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAClE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -9,17 +9,17 @@ Object.defineProperty(exports, "FlexGrid", {
|
|
|
9
9
|
return _FlexGrid.FlexGrid;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "FlexGridSelection", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return _FlexGrid2.
|
|
15
|
+
return _FlexGrid2.FlexGridSelection;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "FlexGridState", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return _FlexGrid2.
|
|
21
|
+
return _FlexGrid2.FlexGridState;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
var _FlexGrid = require("./FlexGrid");
|
|
25
|
-
var _FlexGrid2 = require("./FlexGrid.
|
|
25
|
+
var _FlexGrid2 = require("./FlexGrid.type");
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { DisplayTable } from './DisplayTable';
|
|
2
2
|
import { FlexGrid } from './FlexGrid';
|
|
3
|
+
export type { IFlexGridItem } from './FlexGrid';
|
|
3
4
|
export declare const Grid: {
|
|
4
5
|
DisplayTable: typeof DisplayTable;
|
|
5
6
|
FlexGrid: typeof FlexGrid;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
radio: string;
|
|
9
|
-
};
|
|
10
|
-
flexGridState: {
|
|
11
|
-
active: string;
|
|
12
|
-
inactive: string;
|
|
13
|
-
};
|
|
7
|
+
FlexGridSelection: import("./FlexGrid/FlexGrid.type").IFlexGridSelection;
|
|
8
|
+
FlexGridState: import("./FlexGrid/FlexGrid.type").IFlexGridState;
|
|
14
9
|
};
|
|
15
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primer/Grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAoC,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primer/Grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAoC,MAAM,YAAY,CAAA;AACvE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,IAAI;;;;;CAKhB,CAAA"}
|
|
@@ -9,6 +9,6 @@ var _FlexGrid = require("./FlexGrid");
|
|
|
9
9
|
var Grid = exports.Grid = {
|
|
10
10
|
DisplayTable: _DisplayTable.DisplayTable,
|
|
11
11
|
FlexGrid: _FlexGrid.FlexGrid,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
FlexGridSelection: _FlexGrid.FlexGridSelection,
|
|
13
|
+
FlexGridState: _FlexGrid.FlexGridState
|
|
14
14
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function Icon({ className, ariaLabel, icon, height, width, size, fill, verticalAlign, ...otherProps }:
|
|
1
|
+
import { IIcon } from './Icon.type';
|
|
2
|
+
export declare function Icon({ className, ariaLabel, icon, height, width, size, fill, verticalAlign, ...otherProps }: IIcon): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/primer/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/primer/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoC,MAAM,aAAa,CAAA;AAKrE,wBAAgB,IAAI,CAAC,EACnB,SAAiC,EACjC,SAAiC,EACjC,IAAI,EACJ,MAA2B,EAC3B,KAAyB,EACzB,IAAuB,EACvB,IAAuB,EACvB,aAAyC,EACzC,GAAG,UAAU,EACd,EAAE,KAAK,2CAiCP"}
|