@flexmatch-dev/react-ui 0.0.1

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.
Files changed (40) hide show
  1. package/README.md +68 -0
  2. package/cjs/components/Input/Selectable/InputOptionSwitch.d.ts +10 -0
  3. package/cjs/components/Input/Selectable/InputOptionSwitch.d.ts.map +1 -0
  4. package/cjs/components/Input/Selectable/InputOptionSwitch.js +58 -0
  5. package/cjs/components/Input/Selectable/InputOptionSwitchButton.d.ts +9 -0
  6. package/cjs/components/Input/Selectable/InputOptionSwitchButton.d.ts.map +1 -0
  7. package/cjs/components/Input/Selectable/InputOptionSwitchButton.js +69 -0
  8. package/cjs/components/atoms/option-switch.ui.d.ts +9 -0
  9. package/cjs/components/atoms/option-switch.ui.d.ts.map +1 -0
  10. package/cjs/components/atoms/option-switch.ui.js +48 -0
  11. package/cjs/components/atoms/textbox.ui.d.ts +4 -0
  12. package/cjs/components/atoms/textbox.ui.d.ts.map +1 -0
  13. package/cjs/components/atoms/textbox.ui.js +31 -0
  14. package/cjs/context/Input.d.ts +11 -0
  15. package/cjs/context/Input.d.ts.map +1 -0
  16. package/cjs/context/Input.js +5 -0
  17. package/cjs/index.d.ts +4 -0
  18. package/cjs/index.d.ts.map +1 -0
  19. package/cjs/index.js +36 -0
  20. package/cjs/package.json +1 -0
  21. package/dist/index.css +1066 -0
  22. package/lib/components/Input/Selectable/InputOptionSwitch.d.ts +10 -0
  23. package/lib/components/Input/Selectable/InputOptionSwitch.d.ts.map +1 -0
  24. package/lib/components/Input/Selectable/InputOptionSwitch.js +51 -0
  25. package/lib/components/Input/Selectable/InputOptionSwitchButton.d.ts +9 -0
  26. package/lib/components/Input/Selectable/InputOptionSwitchButton.d.ts.map +1 -0
  27. package/lib/components/Input/Selectable/InputOptionSwitchButton.js +63 -0
  28. package/lib/components/atoms/option-switch.ui.d.ts +9 -0
  29. package/lib/components/atoms/option-switch.ui.d.ts.map +1 -0
  30. package/lib/components/atoms/option-switch.ui.js +41 -0
  31. package/lib/components/atoms/textbox.ui.d.ts +4 -0
  32. package/lib/components/atoms/textbox.ui.d.ts.map +1 -0
  33. package/lib/components/atoms/textbox.ui.js +24 -0
  34. package/lib/context/Input.d.ts +11 -0
  35. package/lib/context/Input.d.ts.map +1 -0
  36. package/lib/context/Input.js +1 -0
  37. package/lib/index.d.ts +4 -0
  38. package/lib/index.d.ts.map +1 -0
  39. package/lib/index.js +4 -0
  40. package/package.json +103 -0
@@ -0,0 +1,10 @@
1
+ import { InputSelectableProps } from '@context/Input';
2
+ export interface InputOptionSwitchProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>, InputSelectableProps<T> {
3
+ id?: string | undefined;
4
+ }
5
+ declare const InputOptionSwitch: {
6
+ <T>({ id, className, options, value, onChange, }: InputOptionSwitchProps<T>): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export default InputOptionSwitch;
10
+ //# sourceMappingURL=InputOptionSwitch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputOptionSwitch.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Selectable/InputOptionSwitch.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAOtD,MAAM,WAAW,sBAAsB,CAAC,CAAC,CACvC,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACvF,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzB;AAED,QAAA,MAAM,iBAAiB;KAAI,CAAC,gDAMzB,sBAAsB,CAAC,CAAC,CAAC;;CAoC3B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { OptionSwitchContainerUI, OptionSwitchSelectionUI } from "../../atoms/option-switch.ui";
2
+ import { useCallback, useMemo } from 'react';
3
+ import InputOptionSwitchButton from "./InputOptionSwitchButton";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ var size = 100;
6
+ var InputOptionSwitch = function InputOptionSwitch(_ref) {
7
+ var id = _ref.id,
8
+ className = _ref.className,
9
+ options = _ref.options,
10
+ value = _ref.value,
11
+ onChange = _ref.onChange;
12
+ var positionX = useMemo(function () {
13
+ var index = options.findIndex(function (option) {
14
+ return option.value === value;
15
+ });
16
+ if (index === -1) {
17
+ return 0;
18
+ }
19
+ return index * size;
20
+ }, [options, value]);
21
+ var handleSelect = useCallback(function (eventKey) {
22
+ if (eventKey !== null) {
23
+ var option = options.find(function (opt) {
24
+ return String(opt.value) === String(eventKey);
25
+ });
26
+ if (option && onChange) {
27
+ onChange(option.value);
28
+ }
29
+ }
30
+ }, [options, onChange]);
31
+ return /*#__PURE__*/_jsxs(OptionSwitchContainerUI, {
32
+ id: id,
33
+ className: className,
34
+ children: [/*#__PURE__*/_jsx(OptionSwitchSelectionUI, {
35
+ style: {
36
+ transform: "translateX(".concat(positionX, "px)")
37
+ }
38
+ }), options.map(function (option) {
39
+ return /*#__PURE__*/_jsx(InputOptionSwitchButton, {
40
+ eventKey: String(option.value),
41
+ disabled: !!option.disabled,
42
+ onSelect: function onSelect(eventKey) {
43
+ return handleSelect(eventKey);
44
+ },
45
+ children: option.label
46
+ }, String(option.value));
47
+ })]
48
+ });
49
+ };
50
+ InputOptionSwitch.displayName = 'InputOptionSwitch';
51
+ export default InputOptionSwitch;
@@ -0,0 +1,9 @@
1
+ export interface InputOptionSwitchButtonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
2
+ disabled?: boolean | undefined;
3
+ eventKey?: string | number | null | undefined;
4
+ onSelect?: ((eventKey: string | number | null, event: React.SyntheticEvent<HTMLElement>) => void) | undefined;
5
+ onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
6
+ }
7
+ declare const InputOptionSwitchButton: ({ disabled, eventKey, onSelect, onClick, children, ...props }: InputOptionSwitchButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default InputOptionSwitchButton;
9
+ //# sourceMappingURL=InputOptionSwitchButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputOptionSwitchButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Selectable/InputOptionSwitchButton.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,UAAU,CACX;IACC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE/B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAE9C,QAAQ,CAAC,EACL,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,GACtF,SAAS,CAAC;IAEd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CAC/D;AACD,QAAA,MAAM,uBAAuB,GAAI,+DAO9B,4BAA4B,4CA0D9B,CAAC;AACF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,63 @@
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 = ["disabled", "eventKey", "onSelect", "onClick", "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 { OptionSwitchButtonUI } from "../../atoms/option-switch.ui";
11
+ import { useCallback } from 'react';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ var InputOptionSwitchButton = function InputOptionSwitchButton(_ref) {
14
+ var disabled = _ref.disabled,
15
+ eventKey = _ref.eventKey,
16
+ onSelect = _ref.onSelect,
17
+ onClick = _ref.onClick,
18
+ children = _ref.children,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ var handleClick = useCallback(function (e) {
21
+ if (disabled) {
22
+ e.preventDefault();
23
+ e.stopPropagation();
24
+ return;
25
+ }
26
+ if (onClick) {
27
+ onClick(e);
28
+ }
29
+ if (!e.defaultPrevented) {
30
+ if (onSelect) {
31
+ onSelect(eventKey !== null && eventKey !== void 0 ? eventKey : null, e);
32
+ }
33
+ }
34
+ }, [disabled, onClick, onSelect, eventKey]);
35
+ var handleKeyDown = useCallback(function (e) {
36
+ if (disabled) {
37
+ e.preventDefault();
38
+ e.stopPropagation();
39
+ return;
40
+ }
41
+ if (e.key === 'Enter' || e.key === ' ') {
42
+ e.preventDefault();
43
+ if (onClick) {
44
+ onClick(e);
45
+ }
46
+ if (!e.defaultPrevented) {
47
+ if (onSelect) {
48
+ onSelect(eventKey !== null && eventKey !== void 0 ? eventKey : null, e);
49
+ }
50
+ }
51
+ }
52
+ }, [disabled, onClick, onSelect, eventKey]);
53
+ return /*#__PURE__*/_jsx(OptionSwitchButtonUI, _objectSpread(_objectSpread({
54
+ disabled: !!disabled,
55
+ onClick: handleClick,
56
+ onKeyDown: handleKeyDown,
57
+ tabIndex: disabled ? -1 : 0,
58
+ "aria-disabled": disabled
59
+ }, props), {}, {
60
+ children: children
61
+ }));
62
+ };
63
+ export default InputOptionSwitchButton;
@@ -0,0 +1,9 @@
1
+ type OptionSwitchContainerUIProps = React.HTMLAttributes<HTMLDivElement>;
2
+ export declare const OptionSwitchContainerUI: ({ children, className, ...props }: OptionSwitchContainerUIProps) => import("react/jsx-runtime").JSX.Element;
3
+ export interface OptionSwitchButtonUIProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ disabled?: boolean | undefined;
5
+ }
6
+ export declare const OptionSwitchButtonUI: ({ className, ...props }: OptionSwitchButtonUIProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const OptionSwitchSelectionUI: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=option-switch.ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option-switch.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/option-switch.ui.tsx"],"names":[],"mappings":"AACA,KAAK,4BAA4B,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAEzE,eAAO,MAAM,uBAAuB,GAAI,mCAIrC,4BAA4B,4CAM9B,CAAC;AAEF,MAAM,WAAW,yBAA0B,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrF,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC;AACD,eAAO,MAAM,oBAAoB,GAAI,yBAAyB,yBAAyB,4CAatF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,yBAGrC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,4CAMtC,CAAC"}
@@ -0,0 +1,41 @@
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 = ["children", "className"],
3
+ _excluded2 = ["className"],
4
+ _excluded3 = ["className"];
5
+ 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; }
6
+ 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; }
7
+ 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; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
+ 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); }
10
+ 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; }
11
+ 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; }
12
+ import clsx from 'clsx';
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ export var OptionSwitchContainerUI = function OptionSwitchContainerUI(_ref) {
15
+ var children = _ref.children,
16
+ className = _ref.className,
17
+ props = _objectWithoutProperties(_ref, _excluded);
18
+ return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
19
+ className: clsx('flexmatch-input-option-switch', className)
20
+ }, props), {}, {
21
+ children: children
22
+ }));
23
+ };
24
+ export var OptionSwitchButtonUI = function OptionSwitchButtonUI(_ref2) {
25
+ var className = _ref2.className,
26
+ props = _objectWithoutProperties(_ref2, _excluded2);
27
+ return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
28
+ className: clsx('flexmatch-input-option-switch-button', className, !!props.disabled && 'disabled')
29
+ }, props), {}, {
30
+ children: props.children
31
+ }));
32
+ };
33
+ export var OptionSwitchSelectionUI = function OptionSwitchSelectionUI(_ref3) {
34
+ var className = _ref3.className,
35
+ props = _objectWithoutProperties(_ref3, _excluded3);
36
+ return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
37
+ className: clsx('flexmatch-input-option-switch-selection', className)
38
+ }, props), {}, {
39
+ children: /*#__PURE__*/_jsx("div", {})
40
+ }));
41
+ };
@@ -0,0 +1,4 @@
1
+ type TextboxUIProps = React.InputHTMLAttributes<HTMLInputElement>;
2
+ declare const TextboxUI: import("react").ForwardRefExoticComponent<TextboxUIProps & import("react").RefAttributes<HTMLInputElement>>;
3
+ export default TextboxUI;
4
+ //# sourceMappingURL=textbox.ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textbox.ui.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/textbox.ui.tsx"],"names":[],"mappings":"AAGA,KAAK,cAAc,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAClE,QAAA,MAAM,SAAS,6GAYb,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -0,0 +1,24 @@
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"];
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 TextboxUI = /*#__PURE__*/forwardRef(function (_ref, ref) {
14
+ var className = _ref.className,
15
+ props = _objectWithoutProperties(_ref, _excluded);
16
+ return /*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({
17
+ ref: ref
18
+ }, props), {}, {
19
+ type: "text",
20
+ className: clsx(className, 'p-2 w-full rounded-md border border-gray-200 text-b2 h-[50px] placeholder:text-gray-400 font-gray-800')
21
+ }));
22
+ });
23
+ TextboxUI.displayName = 'TextboxUI';
24
+ export default TextboxUI;
@@ -0,0 +1,11 @@
1
+ export interface InputSelectableOption<T> {
2
+ label: string;
3
+ value: T;
4
+ disabled?: boolean;
5
+ }
6
+ export interface InputSelectableProps<T> {
7
+ value?: T | undefined;
8
+ onChange?: (value: T) => void;
9
+ options: InputSelectableOption<T>[];
10
+ }
11
+ //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1 @@
1
+ export {};
package/lib/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from '@atoms/option-switch.ui';
2
+ export { default as TextboxUI } from '@atoms/textbox.ui';
3
+ export { default as InputOptionSwitch } from '@components/Input/Selectable/InputOptionSwitch';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gDAAgD,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,4 @@
1
+ /* For Test */
2
+ export * from "./components/atoms/option-switch.ui";
3
+ export { default as TextboxUI } from "./components/atoms/textbox.ui";
4
+ export { default as InputOptionSwitch } from "./components/Input/Selectable/InputOptionSwitch";
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@flexmatch-dev/react-ui",
3
+ "version": "0.0.1",
4
+ "description": "React UI component library by FlexMatch",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/flexmatch/react-ui.git"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "bugs": {
12
+ "url": "https://github.com/flexmatch/react-ui/issues"
13
+ },
14
+ "homepage": "https://github.com/flexmatch/react-ui#readme",
15
+ "keywords": [
16
+ "react",
17
+ "ui",
18
+ "components",
19
+ "flexmatch"
20
+ ],
21
+ "files": [
22
+ "lib",
23
+ "cjs",
24
+ "dist",
25
+ "README.md"
26
+ ],
27
+ "main": "./cjs/index.js",
28
+ "module": "./lib/index.js",
29
+ "types": "./lib/index.d.ts",
30
+ "style": "./dist/index.css",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./lib/index.d.ts",
34
+ "import": "./lib/index.js",
35
+ "require": "./cjs/index.js"
36
+ },
37
+ "./style": "./dist/index.css",
38
+ "./dist/index.css": "./dist/index.css",
39
+ "./package.json": "./package.json"
40
+ },
41
+ "sideEffects": false,
42
+ "scripts": {
43
+ "build": "rimraf lib cjs dist && npm run build:esm && npm run build:esm:types && npm run build:cjs && npm run build:cjs:types && npm run build:css",
44
+ "build:esm": "babel src --out-dir lib --delete-dir-on-start --env-name esm --extensions .ts,.tsx --ignore '**/*.d.ts','**/*.css'",
45
+ "build:cjs": "babel src --out-dir cjs --env-name cjs --delete-dir-on-start --extensions .ts,.tsx --ignore '**/*.d.ts','**/*.css' && echo '{\"type\": \"commonjs\"}' > cjs/package.json",
46
+ "build:esm:types": "tsc --emitDeclarationOnly --outDir lib",
47
+ "build:cjs:types": "tsc --emitDeclarationOnly --outDir cjs",
48
+ "build:css": "node scripts/parse-figma.js && node scripts/build-css.js",
49
+ "dev": "node -e \"require('fs').writeFileSync('cjs/package.json', JSON.stringify({type: 'commonjs'}, null, 2))\" && npm run build:css && concurrently \"npm run dev:esm\" \"npm run dev:cjs\" \"npm run dev:css\"",
50
+ "dev:esm": "babel src --out-dir lib --watch --env-name esm --extensions .ts,.tsx --ignore '**/*.d.ts','**/*.css'",
51
+ "dev:cjs": "babel src --out-dir cjs --watch --env-name cjs --extensions .ts,.tsx --ignore '**/*.d.ts','**/*.css'",
52
+ "dev:css": "node scripts/watch-css.js",
53
+ "type-check": "tsc --noEmit",
54
+ "lint": "eslint src --fix",
55
+ "prepublishOnly": "npm run build"
56
+ },
57
+ "dependencies": {
58
+ "@babel/runtime": "^7.27.0",
59
+ "@restart/hooks": "^0.6.2",
60
+ "@restart/ui": "^1.9.4",
61
+ "clsx": "^2.1.1"
62
+ },
63
+ "devDependencies": {
64
+ "@babel/cli": "^7.28.3",
65
+ "@babel/core": "^7.28.5",
66
+ "@babel/preset-env": "^7.28.5",
67
+ "@babel/preset-react": "^7.28.5",
68
+ "@babel/preset-typescript": "^7.28.5",
69
+ "babel-plugin-module-resolver": "^5.0.0",
70
+ "@types/react": "^19.2.2",
71
+ "@types/react-dom": "^19.2.2",
72
+ "@typescript-eslint/eslint-plugin": "^8.49.0",
73
+ "@typescript-eslint/parser": "^8.49.0",
74
+ "eslint": "^9.39.1",
75
+ "eslint-config-prettier": "^10.1.8",
76
+ "eslint-plugin-perfectionist": "^4.15.1",
77
+ "eslint-plugin-prettier": "^5.5.4",
78
+ "eslint-plugin-react-hooks": "^7.0.1",
79
+ "eslint-plugin-react-refresh": "^0.4.24",
80
+ "globals": "^16.4.0",
81
+ "prettier": "^3.7.4",
82
+ "react": "^19.2.0",
83
+ "react-dom": "^19.2.0",
84
+ "concurrently": "^9.1.2",
85
+ "rimraf": "^6.0.1",
86
+ "typescript": "^5.9.3",
87
+ "typescript-eslint": "^8.49.0"
88
+ },
89
+ "peerDependencies": {
90
+ "@types/react": "^19.2.2",
91
+ "react": "^19.2.0",
92
+ "react-dom": "^19.2.0"
93
+ },
94
+ "peerDependenciesMeta": {
95
+ "@types/react": {
96
+ "optional": true
97
+ }
98
+ },
99
+ "publishConfig": {
100
+ "access": "public",
101
+ "registry": "https://registry.npmjs.org/"
102
+ }
103
+ }