@edu-tosel/design 1.0.28 → 1.0.29

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.
@@ -20,5 +20,5 @@ export default function BoardHeader({ titles, tag, options, }) {
20
20
  displays: "xl:hidden block ",
21
21
  sizes: "w-full h-19",
22
22
  };
23
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [icon && _jsx("img", { src: icon, className: "fill-blue-500" }), _jsx("div", { className: "text-2xl font-pretendard-bold text-green-dark", children: title })] }), _jsxs("div", { className: "flex items-center ml-auto gap-4", children: [selects?.map(({ width, title, options, state }, index) => (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { children: title }), _jsx(Select, { options: { width }, selectOptions: options, state: state }, title)] }, index))), inputs?.map((prop, index) => (_jsx(Input, { ...prop }, index)))] })] }), _jsx("div", { className: cn(block) })] }));
23
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [icon && _jsx("img", { src: icon, className: "fill-blue-500" }), _jsx("div", { className: "text-2xl font-pretendard-bold text-green-dark", children: title })] }), _jsxs("div", { className: "flex items-center ml-auto gap-4", children: [selects?.map(({ selectOptions, options, state }, index) => (_jsx("div", { className: "flex items-center gap-2", children: _jsx(Select, { options: options, selectOptions: selectOptions, state: state }, title) }, index))), inputs?.map((prop, index) => (_jsx(Input, { ...prop }, index)))] })] }), _jsx("div", { className: cn(block) })] }));
24
24
  }
@@ -1,6 +1,6 @@
1
- import { DataField, Size, State, Titles } from "./Property";
1
+ import { DataField, Size, Titles } from "./Property";
2
2
  import { EventsProps } from "./Widget";
3
- import { HTMLInputElement, HTMLLabelElement, SelectOption } from "./HTMLElement";
3
+ import { HTMLInputElement, HTMLLabelElement, HTMLSelectElement } from "./HTMLElement";
4
4
  interface OptionsProps {
5
5
  classNames?: string;
6
6
  width?: Size;
@@ -22,12 +22,7 @@ export interface BoardHeaderProps {
22
22
  icon?: string;
23
23
  };
24
24
  tag?: {
25
- selects?: {
26
- title: string;
27
- state: State<string>;
28
- options: SelectOption<string>[];
29
- width?: Size;
30
- }[];
25
+ selects?: HTMLSelectElement<unknown>[];
31
26
  inputs?: HTMLInputElement[];
32
27
  };
33
28
  options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.28
1
+ 1.0.29