@flexmatch-dev/react-ui 0.0.1 → 0.0.3
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/cjs/assets/icon-check.d.ts +7 -0
- package/cjs/assets/icon-check.d.ts.map +1 -0
- package/cjs/assets/icon-check.js +28 -0
- package/cjs/assets/icon-close.d.ts +3 -0
- package/cjs/assets/icon-close.d.ts.map +1 -0
- package/cjs/assets/icon-close.js +24 -0
- package/cjs/assets/icon-selectbox-arrow.d.ts +7 -0
- package/cjs/assets/icon-selectbox-arrow.d.ts.map +1 -0
- package/cjs/assets/icon-selectbox-arrow.js +28 -0
- package/cjs/assets/index.d.ts +4 -0
- package/cjs/assets/index.d.ts.map +1 -0
- package/cjs/assets/index.js +27 -0
- package/cjs/components/Input/Chip/InputChipButton.d.ts +5 -0
- package/cjs/components/Input/Chip/InputChipButton.d.ts.map +1 -0
- package/cjs/components/Input/Chip/InputChipButton.js +31 -0
- package/cjs/components/Input/Chip/InputChipRow.d.ts +13 -0
- package/cjs/components/Input/Chip/InputChipRow.d.ts.map +1 -0
- package/cjs/components/Input/Chip/InputChipRow.js +96 -0
- package/cjs/components/Input/Chip/InputTextbox.d.ts +5 -0
- package/cjs/components/Input/Chip/InputTextbox.d.ts.map +1 -0
- package/cjs/components/Input/Chip/InputTextbox.js +30 -0
- package/cjs/components/Input/Chip/index.d.ts +15 -0
- package/cjs/components/Input/Chip/index.d.ts.map +1 -0
- package/cjs/components/Input/Chip/index.js +17 -0
- package/cjs/components/Input/Selectable/InputButtonMultiSelect.d.ts +14 -0
- package/cjs/components/Input/Selectable/InputButtonMultiSelect.d.ts.map +1 -0
- package/cjs/components/Input/Selectable/InputButtonMultiSelect.js +96 -0
- package/cjs/components/Input/Selectable/InputButtonSelect.d.ts +14 -0
- package/cjs/components/Input/Selectable/InputButtonSelect.d.ts.map +1 -0
- package/cjs/components/Input/Selectable/InputButtonSelect.js +65 -0
- package/cjs/components/Input/Selectable/InputButtonSelectButton.d.ts +14 -0
- package/cjs/components/Input/Selectable/InputButtonSelectButton.d.ts.map +1 -0
- package/cjs/components/Input/Selectable/InputButtonSelectButton.js +78 -0
- package/cjs/components/Input/Selectable/InputCardSelect.d.ts +14 -0
- package/cjs/components/Input/Selectable/InputCardSelect.d.ts.map +1 -0
- package/cjs/components/Input/Selectable/InputCardSelect.js +65 -0
- package/cjs/components/Input/Selectable/InputCardSelectButton.d.ts +14 -0
- package/cjs/components/Input/Selectable/InputCardSelectButton.d.ts.map +1 -0
- package/cjs/components/Input/Selectable/InputCardSelectButton.js +85 -0
- package/cjs/components/Input/Selectable/InputCheckbox.d.ts +11 -0
- package/cjs/components/Input/Selectable/InputCheckbox.d.ts.map +1 -0
- package/cjs/components/Input/Selectable/InputCheckbox.js +43 -0
- package/cjs/components/Input/Selectable/InputOptionSwitch.d.ts.map +1 -1
- package/cjs/components/Input/Selectable/InputOptionSwitch.js +5 -2
- package/cjs/components/Input/Selectable/InputOptionSwitchButton.d.ts +2 -1
- package/cjs/components/Input/Selectable/InputOptionSwitchButton.d.ts.map +1 -1
- package/cjs/components/Input/Selectable/InputOptionSwitchButton.js +5 -1
- package/cjs/components/Input/Selectable/InputRadiobutton.d.ts +10 -0
- package/cjs/components/Input/Selectable/InputRadiobutton.d.ts.map +1 -0
- package/cjs/components/Input/Selectable/InputRadiobutton.js +45 -0
- package/cjs/components/Input/Selectable/InputSelectbox.d.ts +12 -0
- package/cjs/components/Input/Selectable/InputSelectbox.d.ts.map +1 -0
- package/cjs/components/Input/Selectable/InputSelectbox.js +92 -0
- package/cjs/components/atoms/button.ui.d.ts +6 -0
- package/cjs/components/atoms/button.ui.d.ts.map +1 -0
- package/cjs/components/atoms/button.ui.js +31 -0
- package/cjs/components/atoms/card-select.ui.d.ts +14 -0
- package/cjs/components/atoms/card-select.ui.d.ts.map +1 -0
- package/cjs/components/atoms/card-select.ui.js +72 -0
- package/cjs/components/atoms/checkbox.ui.d.ts +9 -0
- package/cjs/components/atoms/checkbox.ui.d.ts.map +1 -0
- package/cjs/components/atoms/checkbox.ui.js +86 -0
- package/cjs/components/atoms/chip.ui.d.ts +10 -0
- package/cjs/components/atoms/chip.ui.d.ts.map +1 -0
- package/cjs/components/atoms/chip.ui.js +35 -0
- package/cjs/components/atoms/index.d.ts +9 -0
- package/cjs/components/atoms/index.d.ts.map +1 -0
- package/cjs/components/atoms/index.js +62 -0
- package/cjs/components/atoms/info-card.ui.d.ts +7 -0
- package/cjs/components/atoms/info-card.ui.d.ts.map +1 -0
- package/cjs/components/atoms/info-card.ui.js +36 -0
- package/cjs/components/atoms/radio.ui.d.ts +14 -0
- package/cjs/components/atoms/radio.ui.d.ts.map +1 -0
- package/cjs/components/atoms/radio.ui.js +52 -0
- package/cjs/components/atoms/select.ui.d.ts +19 -0
- package/cjs/components/atoms/select.ui.d.ts.map +1 -0
- package/cjs/components/atoms/select.ui.js +87 -0
- package/cjs/components/atoms/textarea.ui.d.ts +5 -0
- package/cjs/components/atoms/textarea.ui.d.ts.map +1 -0
- package/cjs/components/atoms/textarea.ui.js +33 -0
- package/cjs/components/atoms/textbox.ui.d.ts +6 -1
- package/cjs/components/atoms/textbox.ui.d.ts.map +1 -1
- package/cjs/components/atoms/textbox.ui.js +54 -7
- package/cjs/constant/chip.constant.d.ts +5 -0
- package/cjs/constant/chip.constant.d.ts.map +1 -0
- package/cjs/constant/chip.constant.js +10 -0
- package/cjs/context/Input.d.ts +15 -0
- package/cjs/context/Input.d.ts.map +1 -1
- package/cjs/index.d.ts +12 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +77 -16
- package/dist/index.css +1083 -3
- package/lib/assets/icon-check.d.ts +7 -0
- package/lib/assets/icon-check.d.ts.map +1 -0
- package/lib/assets/icon-check.js +22 -0
- package/lib/assets/icon-close.d.ts +3 -0
- package/lib/assets/icon-close.d.ts.map +1 -0
- package/lib/assets/icon-close.js +18 -0
- package/lib/assets/icon-selectbox-arrow.d.ts +7 -0
- package/lib/assets/icon-selectbox-arrow.d.ts.map +1 -0
- package/lib/assets/icon-selectbox-arrow.js +22 -0
- package/lib/assets/index.d.ts +4 -0
- package/lib/assets/index.d.ts.map +1 -0
- package/lib/assets/index.js +3 -0
- package/lib/components/Input/Chip/InputChipButton.d.ts +5 -0
- package/lib/components/Input/Chip/InputChipButton.d.ts.map +1 -0
- package/lib/components/Input/Chip/InputChipButton.js +24 -0
- package/lib/components/Input/Chip/InputChipRow.d.ts +13 -0
- package/lib/components/Input/Chip/InputChipRow.d.ts.map +1 -0
- package/lib/components/Input/Chip/InputChipRow.js +89 -0
- package/lib/components/Input/Chip/InputTextbox.d.ts +5 -0
- package/lib/components/Input/Chip/InputTextbox.d.ts.map +1 -0
- package/lib/components/Input/Chip/InputTextbox.js +23 -0
- package/lib/components/Input/Chip/index.d.ts +15 -0
- package/lib/components/Input/Chip/index.d.ts.map +1 -0
- package/lib/components/Input/Chip/index.js +10 -0
- package/lib/components/Input/Selectable/InputButtonMultiSelect.d.ts +14 -0
- package/lib/components/Input/Selectable/InputButtonMultiSelect.d.ts.map +1 -0
- package/lib/components/Input/Selectable/InputButtonMultiSelect.js +89 -0
- package/lib/components/Input/Selectable/InputButtonSelect.d.ts +14 -0
- package/lib/components/Input/Selectable/InputButtonSelect.d.ts.map +1 -0
- package/lib/components/Input/Selectable/InputButtonSelect.js +58 -0
- package/lib/components/Input/Selectable/InputButtonSelectButton.d.ts +14 -0
- package/lib/components/Input/Selectable/InputButtonSelectButton.d.ts.map +1 -0
- package/lib/components/Input/Selectable/InputButtonSelectButton.js +71 -0
- package/lib/components/Input/Selectable/InputCardSelect.d.ts +14 -0
- package/lib/components/Input/Selectable/InputCardSelect.d.ts.map +1 -0
- package/lib/components/Input/Selectable/InputCardSelect.js +58 -0
- package/lib/components/Input/Selectable/InputCardSelectButton.d.ts +14 -0
- package/lib/components/Input/Selectable/InputCardSelectButton.d.ts.map +1 -0
- package/lib/components/Input/Selectable/InputCardSelectButton.js +78 -0
- package/lib/components/Input/Selectable/InputCheckbox.d.ts +11 -0
- package/lib/components/Input/Selectable/InputCheckbox.d.ts.map +1 -0
- package/lib/components/Input/Selectable/InputCheckbox.js +37 -0
- package/lib/components/Input/Selectable/InputOptionSwitch.d.ts.map +1 -1
- package/lib/components/Input/Selectable/InputOptionSwitch.js +6 -2
- package/lib/components/Input/Selectable/InputOptionSwitchButton.d.ts +2 -1
- package/lib/components/Input/Selectable/InputOptionSwitchButton.d.ts.map +1 -1
- package/lib/components/Input/Selectable/InputOptionSwitchButton.js +4 -1
- package/lib/components/Input/Selectable/InputRadiobutton.d.ts +10 -0
- package/lib/components/Input/Selectable/InputRadiobutton.d.ts.map +1 -0
- package/lib/components/Input/Selectable/InputRadiobutton.js +38 -0
- package/lib/components/Input/Selectable/InputSelectbox.d.ts +12 -0
- package/lib/components/Input/Selectable/InputSelectbox.d.ts.map +1 -0
- package/lib/components/Input/Selectable/InputSelectbox.js +85 -0
- package/lib/components/atoms/button.ui.d.ts +6 -0
- package/lib/components/atoms/button.ui.d.ts.map +1 -0
- package/lib/components/atoms/button.ui.js +24 -0
- package/lib/components/atoms/card-select.ui.d.ts +14 -0
- package/lib/components/atoms/card-select.ui.d.ts.map +1 -0
- package/lib/components/atoms/card-select.ui.js +65 -0
- package/lib/components/atoms/checkbox.ui.d.ts +9 -0
- package/lib/components/atoms/checkbox.ui.d.ts.map +1 -0
- package/lib/components/atoms/checkbox.ui.js +79 -0
- package/lib/components/atoms/chip.ui.d.ts +10 -0
- package/lib/components/atoms/chip.ui.d.ts.map +1 -0
- package/lib/components/atoms/chip.ui.js +28 -0
- package/lib/components/atoms/index.d.ts +9 -0
- package/lib/components/atoms/index.d.ts.map +1 -0
- package/lib/components/atoms/index.js +8 -0
- package/lib/components/atoms/info-card.ui.d.ts +7 -0
- package/lib/components/atoms/info-card.ui.d.ts.map +1 -0
- package/lib/components/atoms/info-card.ui.js +29 -0
- package/lib/components/atoms/radio.ui.d.ts +14 -0
- package/lib/components/atoms/radio.ui.d.ts.map +1 -0
- package/lib/components/atoms/radio.ui.js +45 -0
- package/lib/components/atoms/select.ui.d.ts +19 -0
- package/lib/components/atoms/select.ui.d.ts.map +1 -0
- package/lib/components/atoms/select.ui.js +80 -0
- package/lib/components/atoms/textarea.ui.d.ts +5 -0
- package/lib/components/atoms/textarea.ui.d.ts.map +1 -0
- package/lib/components/atoms/textarea.ui.js +26 -0
- package/lib/components/atoms/textbox.ui.d.ts +6 -1
- package/lib/components/atoms/textbox.ui.d.ts.map +1 -1
- package/lib/components/atoms/textbox.ui.js +56 -9
- package/lib/constant/chip.constant.d.ts +5 -0
- package/lib/constant/chip.constant.d.ts.map +1 -0
- package/lib/constant/chip.constant.js +4 -0
- package/lib/context/Input.d.ts +15 -0
- package/lib/context/Input.d.ts.map +1 -1
- package/lib/index.d.ts +12 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +17 -3
- package/package.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["label", "required", "checked", "onChange", "className", "size"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import clsx from 'clsx';
|
|
11
|
+
import { forwardRef } from 'react';
|
|
12
|
+
import { IconCheck } from "../../assets";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var SizeMap = {
|
|
15
|
+
xs: {
|
|
16
|
+
width: 16,
|
|
17
|
+
height: 16,
|
|
18
|
+
iconSize: 12
|
|
19
|
+
},
|
|
20
|
+
sm: {
|
|
21
|
+
width: 20,
|
|
22
|
+
height: 20,
|
|
23
|
+
iconSize: 14
|
|
24
|
+
},
|
|
25
|
+
md: {
|
|
26
|
+
width: 24,
|
|
27
|
+
height: 24,
|
|
28
|
+
iconSize: 16
|
|
29
|
+
},
|
|
30
|
+
lg: {
|
|
31
|
+
width: 28,
|
|
32
|
+
height: 28,
|
|
33
|
+
iconSize: 18
|
|
34
|
+
},
|
|
35
|
+
xl: {
|
|
36
|
+
width: 32,
|
|
37
|
+
height: 32,
|
|
38
|
+
iconSize: 20
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var CheckboxUI = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
42
|
+
var label = _ref.label,
|
|
43
|
+
required = _ref.required,
|
|
44
|
+
checked = _ref.checked,
|
|
45
|
+
_onChange = _ref.onChange,
|
|
46
|
+
className = _ref.className,
|
|
47
|
+
_ref$size = _ref.size,
|
|
48
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
49
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
50
|
+
var sizeStyle = SizeMap[size];
|
|
51
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
52
|
+
className: clsx(className, 'flexmatch-checkbox-container'),
|
|
53
|
+
onClick: function onClick() {
|
|
54
|
+
return _onChange === null || _onChange === void 0 ? void 0 : _onChange(!checked);
|
|
55
|
+
},
|
|
56
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
57
|
+
className: clsx('flexmatch-checkbox', size ? "".concat(size) : '', checked && 'flexmatch-checkbox-checked', required && !checked && 'flexmatch-checkbox-required'),
|
|
58
|
+
style: sizeStyle,
|
|
59
|
+
children: (checked || required) && /*#__PURE__*/_jsx(IconCheck, {
|
|
60
|
+
color: "var(--color-gray-900)",
|
|
61
|
+
size: sizeStyle.iconSize
|
|
62
|
+
})
|
|
63
|
+
}), /*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({
|
|
64
|
+
type: "checkbox"
|
|
65
|
+
}, props), {}, {
|
|
66
|
+
ref: ref,
|
|
67
|
+
className: "flexmatch-checkbox-input",
|
|
68
|
+
checked: checked,
|
|
69
|
+
onChange: function onChange(e) {
|
|
70
|
+
return _onChange === null || _onChange === void 0 ? void 0 : _onChange(e.target.checked);
|
|
71
|
+
}
|
|
72
|
+
})), label && /*#__PURE__*/_jsx("span", {
|
|
73
|
+
className: "flexmatch-checkbox-label",
|
|
74
|
+
children: label
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
CheckboxUI.displayName = 'CheckboxUI';
|
|
79
|
+
export default CheckboxUI;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface ChipUIProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
onDelete?: () => void;
|
|
4
|
+
}
|
|
5
|
+
declare const ChipUI: {
|
|
6
|
+
({ className, onDelete, ...props }: ChipUIProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default ChipUI;
|
|
10
|
+
//# sourceMappingURL=chip.ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/chip.ui.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,QAAA,MAAM,MAAM;wCAAuC,WAAW;;CAW7D,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["className", "onDelete"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import clsx from 'clsx';
|
|
11
|
+
import IconClose from "../../assets/icon-close";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
var ChipUI = function ChipUI(_ref) {
|
|
14
|
+
var className = _ref.className,
|
|
15
|
+
onDelete = _ref.onDelete,
|
|
16
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
|
18
|
+
className: clsx('flexmatch-chip text-b3', className)
|
|
19
|
+
}, props), {}, {
|
|
20
|
+
children: [props.children, onDelete && /*#__PURE__*/_jsx("button", {
|
|
21
|
+
className: "flexmatch-chip-delete",
|
|
22
|
+
onClick: onDelete,
|
|
23
|
+
children: /*#__PURE__*/_jsx(IconClose, {})
|
|
24
|
+
})]
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
ChipUI.displayName = 'ChipUI';
|
|
28
|
+
export default ChipUI;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as ButtonUI } from './button.ui';
|
|
2
|
+
export { default as ChipUI } from './chip.ui';
|
|
3
|
+
export { default as CheckboxUI } from './checkbox.ui';
|
|
4
|
+
export { default as TextboxUI } from './textbox.ui';
|
|
5
|
+
export { default as TextareaUI } from './textarea.ui';
|
|
6
|
+
export { default as InfoCardUI } from './info-card.ui';
|
|
7
|
+
export { default as SelectBoxUI } from './select.ui';
|
|
8
|
+
export { default as RadioUI } from './radio.ui';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as ButtonUI } from "./button.ui";
|
|
2
|
+
export { default as ChipUI } from "./chip.ui";
|
|
3
|
+
export { default as CheckboxUI } from "./checkbox.ui";
|
|
4
|
+
export { default as TextboxUI } from "./textbox.ui";
|
|
5
|
+
export { default as TextareaUI } from "./textarea.ui";
|
|
6
|
+
export { default as InfoCardUI } from "./info-card.ui";
|
|
7
|
+
export { default as SelectBoxUI } from "./select.ui";
|
|
8
|
+
export { default as RadioUI } from "./radio.ui";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
interface InfoCardUIProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const InfoCardUI: import("react").ForwardRefExoticComponent<InfoCardUIProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export default InfoCardUI;
|
|
7
|
+
//# sourceMappingURL=info-card.ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info-card.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/info-card.ui.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnD,UAAU,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,QAAA,MAAM,UAAU,4GASf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["title", "className", "children"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import clsx from 'clsx';
|
|
11
|
+
import { forwardRef } from 'react';
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
var InfoCardUI = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
14
|
+
var title = _ref.title,
|
|
15
|
+
className = _ref.className,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
|
19
|
+
ref: ref,
|
|
20
|
+
className: clsx('flexmatch-info-card', className)
|
|
21
|
+
}, props), {}, {
|
|
22
|
+
children: [title && /*#__PURE__*/_jsx("h3", {
|
|
23
|
+
className: "text-gray-900 text-b3",
|
|
24
|
+
children: title
|
|
25
|
+
}), children]
|
|
26
|
+
}));
|
|
27
|
+
});
|
|
28
|
+
InfoCardUI.displayName = 'InfoCardUI';
|
|
29
|
+
export default InfoCardUI;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
interface RadioItemUIProps extends HTMLAttributes<HTMLInputElement> {
|
|
3
|
+
id?: string | undefined;
|
|
4
|
+
value?: string | number | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
checked?: boolean | undefined;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const RadioUI: {
|
|
10
|
+
({ id, value, disabled, checked, onClick, children, className, ...props }: RadioItemUIProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default RadioUI;
|
|
14
|
+
//# sourceMappingURL=radio.ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/radio.ui.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,gBAAiB,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IACjE,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AACD,QAAA,MAAM,OAAO;+EASV,gBAAgB;;CAuBlB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["id", "value", "disabled", "checked", "onClick", "children", "className"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import clsx from 'clsx';
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var RadioUI = function RadioUI(_ref) {
|
|
13
|
+
var id = _ref.id,
|
|
14
|
+
value = _ref.value,
|
|
15
|
+
disabled = _ref.disabled,
|
|
16
|
+
checked = _ref.checked,
|
|
17
|
+
_onClick = _ref.onClick,
|
|
18
|
+
children = _ref.children,
|
|
19
|
+
className = _ref.className,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
22
|
+
className: clsx('flexmatch-radiobutton-item', className),
|
|
23
|
+
onClick: function onClick() {
|
|
24
|
+
return !disabled && (_onClick === null || _onClick === void 0 ? void 0 : _onClick());
|
|
25
|
+
},
|
|
26
|
+
children: [/*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({}, props), {}, {
|
|
27
|
+
type: "radio",
|
|
28
|
+
name: id,
|
|
29
|
+
readOnly: true,
|
|
30
|
+
checked: checked,
|
|
31
|
+
disabled: !!disabled,
|
|
32
|
+
className: 'flexmatch-radiobutton-input'
|
|
33
|
+
})), /*#__PURE__*/_jsx("span", {
|
|
34
|
+
className: clsx('flexmatch-radiobutton-icon', checked && 'checked'),
|
|
35
|
+
children: checked && /*#__PURE__*/_jsx("div", {
|
|
36
|
+
className: 'flexmatch-radiobutton-icon-checked'
|
|
37
|
+
})
|
|
38
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
39
|
+
className: clsx('text-b2 flexmatch-radiobutton-label', disabled && 'disabled'),
|
|
40
|
+
children: children
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
RadioUI.displayName = 'RadioContainerUI';
|
|
45
|
+
export default RadioUI;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface ItemUIProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
disabled?: boolean | undefined;
|
|
3
|
+
}
|
|
4
|
+
interface ToggleUIProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const SelectBoxUI: {
|
|
8
|
+
Button: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
|
+
error?: boolean;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
ButtonOverlay: (props: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Menu: ({ children, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
ItemBackground: ({ children, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Item: ({ children, onClick, disabled, ...props }: ItemUIProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
ItemText: ({ children, ...props }: React.HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
Toggle: ({ isOpen, ...props }: ToggleUIProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export default SelectBoxUI;
|
|
19
|
+
//# sourceMappingURL=select.ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/select.ui.tsx"],"names":[],"mappings":"AAiCA,UAAU,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChE,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC;AA0BD,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAClE,MAAM,EAAE,OAAO,CAAC;CACjB;AAYD,QAAA,MAAM,WAAW;oBAvEQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;2BAW5D,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;mCAG5B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;6CAO1B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;sDAW3B,WAAW;uCAiB1B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;mCAWzC,aAAa;CAmBpD,CAAC;AACF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var _excluded = ["children"],
|
|
2
|
+
_excluded2 = ["children"],
|
|
3
|
+
_excluded3 = ["children", "onClick", "disabled"],
|
|
4
|
+
_excluded4 = ["children"],
|
|
5
|
+
_excluded5 = ["isOpen"];
|
|
6
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
+
import clsx from 'clsx';
|
|
15
|
+
import { IconSelectboxArrow } from "../../assets";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
var ButtonUI = function ButtonUI(props) {
|
|
18
|
+
return /*#__PURE__*/_jsx("button", _objectSpread(_objectSpread({}, props), {}, {
|
|
19
|
+
className: clsx(props.className, 'flexmatch-selectbox-button', props.error && 'error'),
|
|
20
|
+
children: props.children
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
var ButtonOverlayUI = function ButtonOverlayUI(props) {
|
|
24
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
25
|
+
className: clsx(props.className, 'flexmatch-selectbox-button-overlay')
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
var MenuUI = function MenuUI(_ref) {
|
|
29
|
+
var children = _ref.children,
|
|
30
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
32
|
+
className: clsx(props.className, 'flexmatch-selectbox-menu'),
|
|
33
|
+
children: children
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
var ItemBackgroundUI = function ItemBackgroundUI(_ref2) {
|
|
37
|
+
var children = _ref2.children,
|
|
38
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
39
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
40
|
+
className: clsx(props.className, 'flexmatch-selectbox-item-background'),
|
|
41
|
+
children: children
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
var ItemUI = function ItemUI(_ref3) {
|
|
45
|
+
var children = _ref3.children,
|
|
46
|
+
onClick = _ref3.onClick,
|
|
47
|
+
disabled = _ref3.disabled,
|
|
48
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
49
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
50
|
+
onClick: disabled ? undefined : onClick,
|
|
51
|
+
className: clsx(props.className, 'flexmatch-selectbox-item', disabled && 'disabled', onClick && 'cursor-pointer'),
|
|
52
|
+
children: children
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
var ItemTextUI = function ItemTextUI(_ref4) {
|
|
56
|
+
var children = _ref4.children,
|
|
57
|
+
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
58
|
+
return /*#__PURE__*/_jsx("span", _objectSpread(_objectSpread({}, props), {}, {
|
|
59
|
+
className: clsx(props.className, 'flexmatch-selectbox-item-text', 'no-drag'),
|
|
60
|
+
children: children
|
|
61
|
+
}));
|
|
62
|
+
};
|
|
63
|
+
var ToggleUI = function ToggleUI(_ref5) {
|
|
64
|
+
var isOpen = _ref5.isOpen,
|
|
65
|
+
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
66
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
67
|
+
className: clsx(props.className, 'flexmatch-selectbox-toggle', isOpen && 'open'),
|
|
68
|
+
children: /*#__PURE__*/_jsx(IconSelectboxArrow, {})
|
|
69
|
+
}));
|
|
70
|
+
};
|
|
71
|
+
var SelectBoxUI = {
|
|
72
|
+
Button: ButtonUI,
|
|
73
|
+
ButtonOverlay: ButtonOverlayUI,
|
|
74
|
+
Menu: MenuUI,
|
|
75
|
+
ItemBackground: ItemBackgroundUI,
|
|
76
|
+
Item: ItemUI,
|
|
77
|
+
ItemText: ItemTextUI,
|
|
78
|
+
Toggle: ToggleUI
|
|
79
|
+
};
|
|
80
|
+
export default SelectBoxUI;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const TextareaUI: import("react").ForwardRefExoticComponent<import("react").TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
2
|
+
error?: boolean;
|
|
3
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
4
|
+
export default TextareaUI;
|
|
5
|
+
//# sourceMappingURL=textarea.ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/textarea.ui.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;YAFN,OAAO;uDAahB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["className", "rows", "error"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import clsx from 'clsx';
|
|
11
|
+
import { forwardRef } from 'react';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var TextareaUI = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
14
|
+
var className = _ref.className,
|
|
15
|
+
rows = _ref.rows,
|
|
16
|
+
error = _ref.error,
|
|
17
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/_jsx("textarea", _objectSpread(_objectSpread({
|
|
19
|
+
ref: ref
|
|
20
|
+
}, props), {}, {
|
|
21
|
+
rows: rows,
|
|
22
|
+
className: clsx(className, 'flexmatch-textarea', error && 'error')
|
|
23
|
+
}));
|
|
24
|
+
});
|
|
25
|
+
TextareaUI.displayName = 'TextareaUI';
|
|
26
|
+
export default TextareaUI;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
interface TextboxUIProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
+
label?: string | React.ReactNode | undefined;
|
|
3
|
+
error?: boolean;
|
|
4
|
+
height?: string | number | undefined;
|
|
5
|
+
labelSide?: 'left' | 'right';
|
|
6
|
+
}
|
|
2
7
|
declare const TextboxUI: import("react").ForwardRefExoticComponent<TextboxUIProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
3
8
|
export default TextboxUI;
|
|
4
9
|
//# sourceMappingURL=textbox.ui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textbox.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/textbox.ui.tsx"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"textbox.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/textbox.ui.tsx"],"names":[],"mappings":"AAGA,UAAU,cAAe,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC1E,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC9B;AACD,QAAA,MAAM,SAAS,6GAsDd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,24 +1,71 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["className"];
|
|
2
|
+
var _excluded = ["className", "label", "readOnly", "disabled", "error", "height", "labelSide"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
9
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
11
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
14
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
15
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
16
|
import clsx from 'clsx';
|
|
11
|
-
import { forwardRef } from 'react';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import { forwardRef, useEffect, useMemo, useRef, useState } from 'react';
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
19
|
var TextboxUI = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
14
20
|
var className = _ref.className,
|
|
21
|
+
Label = _ref.label,
|
|
22
|
+
readOnly = _ref.readOnly,
|
|
23
|
+
disabled = _ref.disabled,
|
|
24
|
+
error = _ref.error,
|
|
25
|
+
height = _ref.height,
|
|
26
|
+
_ref$labelSide = _ref.labelSide,
|
|
27
|
+
labelSide = _ref$labelSide === void 0 ? 'right' : _ref$labelSide,
|
|
15
28
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
var _useState = useState(0),
|
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
+
labelWidth = _useState2[0],
|
|
32
|
+
setLabelWidth = _useState2[1];
|
|
33
|
+
var labelRef = useRef(null);
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
if (Label && labelRef.current) {
|
|
36
|
+
setLabelWidth(labelRef.current.offsetWidth);
|
|
37
|
+
}
|
|
38
|
+
}, [Label]);
|
|
39
|
+
var heightStyle = useMemo(function () {
|
|
40
|
+
if (typeof height === 'number') {
|
|
41
|
+
return "".concat(height, "px");
|
|
42
|
+
}
|
|
43
|
+
if (typeof height === 'string') {
|
|
44
|
+
return height;
|
|
45
|
+
}
|
|
46
|
+
return undefined;
|
|
47
|
+
}, [height]);
|
|
48
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
49
|
+
className: clsx('flexmatch-textbox-container', className),
|
|
50
|
+
children: [/*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({
|
|
51
|
+
style: {
|
|
52
|
+
paddingRight: labelSide === 'right' ? "".concat(labelWidth + 16, "px") : '12px',
|
|
53
|
+
paddingLeft: labelSide === 'left' ? "".concat(labelWidth + 16, "px") : '12px',
|
|
54
|
+
height: heightStyle
|
|
55
|
+
},
|
|
56
|
+
ref: ref
|
|
57
|
+
}, props), {}, {
|
|
58
|
+
type: "text",
|
|
59
|
+
readOnly: readOnly,
|
|
60
|
+
disabled: disabled,
|
|
61
|
+
className: clsx(className, 'flexmatch-textbox', error && 'error')
|
|
62
|
+
})), Label && /*#__PURE__*/_jsx("label", {
|
|
63
|
+
htmlFor: props.id,
|
|
64
|
+
ref: labelRef,
|
|
65
|
+
className: clsx('flexmatch-textbox-label text-b3', disabled && 'disabled', readOnly && 'readonly', labelSide === 'left' ? 'left' : 'right'),
|
|
66
|
+
children: Label
|
|
67
|
+
})]
|
|
68
|
+
});
|
|
22
69
|
});
|
|
23
70
|
TextboxUI.displayName = 'TextboxUI';
|
|
24
71
|
export default TextboxUI;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.constant.d.ts","sourceRoot":"","sources":["../../src/constant/chip.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,QAAwB,CAAC;AAC1D,eAAO,MAAM,oBAAoB,QAAsB,CAAC;AACxD,eAAO,MAAM,uBAAuB,QAAO,CAAC;AAC5C,eAAO,MAAM,wBAAwB,QAAa,CAAC"}
|
package/lib/context/Input.d.ts
CHANGED
|
@@ -3,9 +3,24 @@ export interface InputSelectableOption<T> {
|
|
|
3
3
|
value: T;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
6
|
+
export interface InputMultiSelectableOption<T> {
|
|
7
|
+
label: string;
|
|
8
|
+
value: T | '*';
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface InputSelectableExtraOption<T> {
|
|
12
|
+
value: T;
|
|
13
|
+
description?: string;
|
|
14
|
+
icon?: React.ReactNode | undefined;
|
|
15
|
+
}
|
|
6
16
|
export interface InputSelectableProps<T> {
|
|
7
17
|
value?: T | undefined;
|
|
8
18
|
onChange?: (value: T) => void;
|
|
9
19
|
options: InputSelectableOption<T>[];
|
|
10
20
|
}
|
|
21
|
+
export interface InputMultiSelectableProps<T> {
|
|
22
|
+
value?: T[] | undefined;
|
|
23
|
+
onChange?: (value: T[]) => void;
|
|
24
|
+
options: InputMultiSelectableOption<T>[];
|
|
25
|
+
}
|
|
11
26
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/context/Input.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;CACrC"}
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/context/Input.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,MAAM,WAAW,0BAA0B,CAAC,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,MAAM,WAAW,0BAA0B,CAAC,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC;IACT,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,yBAAyB,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,0BAA0B,CAAC,CAAC,CAAC,EAAE,CAAC;CAC1C"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { IconCheck } from '@assets/index';
|
|
2
|
+
export { default as RadioUI } from '@atoms/radio.ui';
|
|
2
3
|
export { default as TextboxUI } from '@atoms/textbox.ui';
|
|
4
|
+
export { default as TextareaUI } from '@atoms/textarea.ui';
|
|
5
|
+
export { default as InfoCardUI } from '@atoms/info-card.ui';
|
|
6
|
+
export { default as InputChip } from '@/components/Input/Chip';
|
|
3
7
|
export { default as InputOptionSwitch } from '@components/Input/Selectable/InputOptionSwitch';
|
|
8
|
+
export { default as InputSelectbox } from '@components/Input/Selectable/InputSelectbox';
|
|
9
|
+
export { default as InputCheckbox } from '@components/Input/Selectable/InputCheckbox';
|
|
10
|
+
export { default as InputCardSelect } from '@components/Input/Selectable/InputCardSelect';
|
|
11
|
+
export { default as InputRadiobutton } from '@components/Input/Selectable/InputRadiobutton';
|
|
12
|
+
export { default as InputButtonSelect } from '@components/Input/Selectable/InputButtonSelect';
|
|
13
|
+
export { default as InputButtonMultiSelect } from '@components/Input/Selectable/InputButtonMultiSelect';
|
|
14
|
+
export type { InputSelectableOption, InputSelectableExtraOption, InputSelectableProps, } from '@context/Input';
|
|
4
15
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAExG,YAAY,EACV,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,gBAAgB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
// * assets
|
|
2
|
+
export { IconCheck } from "./assets";
|
|
3
|
+
|
|
4
|
+
// * atoms
|
|
5
|
+
export { default as RadioUI } from "./components/atoms/radio.ui";
|
|
3
6
|
export { default as TextboxUI } from "./components/atoms/textbox.ui";
|
|
4
|
-
export { default as
|
|
7
|
+
export { default as TextareaUI } from "./components/atoms/textarea.ui";
|
|
8
|
+
export { default as InfoCardUI } from "./components/atoms/info-card.ui";
|
|
9
|
+
|
|
10
|
+
// * molecules
|
|
11
|
+
export { default as InputChip } from "./components/Input/Chip";
|
|
12
|
+
export { default as InputOptionSwitch } from "./components/Input/Selectable/InputOptionSwitch";
|
|
13
|
+
export { default as InputSelectbox } from "./components/Input/Selectable/InputSelectbox";
|
|
14
|
+
export { default as InputCheckbox } from "./components/Input/Selectable/InputCheckbox";
|
|
15
|
+
export { default as InputCardSelect } from "./components/Input/Selectable/InputCardSelect";
|
|
16
|
+
export { default as InputRadiobutton } from "./components/Input/Selectable/InputRadiobutton";
|
|
17
|
+
export { default as InputButtonSelect } from "./components/Input/Selectable/InputButtonSelect";
|
|
18
|
+
export { default as InputButtonMultiSelect } from "./components/Input/Selectable/InputButtonMultiSelect";
|