@edu-tosel/design 1.0.59 → 1.0.61

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 (50) hide show
  1. package/README.md +42 -42
  2. package/asset/SVG.tsx +27 -27
  3. package/asset/svg/Close.tsx +32 -32
  4. package/asset/svg/Direction.tsx +36 -36
  5. package/asset/svg/Email.tsx +20 -20
  6. package/asset/svg/Icon.tsx +186 -186
  7. package/asset/svg/Image.tsx +24 -24
  8. package/asset/svg/Notification.tsx +34 -34
  9. package/asset/svg/Operation.tsx +130 -130
  10. package/asset/svg/Phone.tsx +20 -20
  11. package/asset/svg/Profile.tsx +27 -27
  12. package/asset/svg/Symbol.tsx +60 -60
  13. package/asset/svg/TOSEL.tsx +63 -63
  14. package/card/design/NavCard.design.js +5 -6
  15. package/globals.css +226 -226
  16. package/interface/Action.d.ts +4 -3
  17. package/interface/Board.d.ts +4 -4
  18. package/interface/Card.d.ts +7 -5
  19. package/interface/Color.d.ts +3 -0
  20. package/interface/Color.js +7 -0
  21. package/interface/Layout.d.ts +4 -3
  22. package/interface/Modal.d.ts +2 -1
  23. package/interface/Overlay.d.ts +3 -3
  24. package/interface/Property.d.ts +2 -2
  25. package/interface/index.d.ts +2 -2
  26. package/interface/index.js +2 -2
  27. package/interface/widget/index.d.ts +55 -0
  28. package/interface/widget/index.js +7 -0
  29. package/layout/design/Row.design.d.ts +1 -1
  30. package/layout/design/Row.design.js +6 -5
  31. package/layout/template/Row.d.ts +3 -3
  32. package/layout/template/Row.js +6 -6
  33. package/layout/widget/sign/WithTitle.d.ts +2 -2
  34. package/modal/template/Confirm/Input.d.ts +2 -2
  35. package/package.json +1 -1
  36. package/tailwind.config.ts +619 -619
  37. package/version.txt +1 -1
  38. package/widget/CheckBox.d.ts +2 -2
  39. package/widget/DatePicker.d.ts +2 -2
  40. package/widget/EmailInput.d.ts +2 -2
  41. package/widget/EmailInput.js +1 -1
  42. package/widget/Toggle.d.ts +2 -2
  43. package/widget/design/Label.design.d.ts +2 -2
  44. package/widget/template/Input.d.ts +3 -3
  45. package/widget/template/Label.d.ts +3 -3
  46. package/widget/template/Select/Select.LG.d.ts +2 -2
  47. package/widget/template/Select/Select.d.ts +2 -2
  48. package/widget/template/Switch/Switch.d.ts +1 -1
  49. package/interface/HTMLElement.d.ts +0 -56
  50. package/interface/HTMLElement.js +0 -7
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.59
1
+ 1.0.61
@@ -1,2 +1,2 @@
1
- import { HTMLCheckBoxElement } from "../interface";
2
- export default function Checkbox({ state: [checked, setChecked], labels, options, color, }: HTMLCheckBoxElement): import("react/jsx-runtime").JSX.Element;
1
+ import { CheckBoxWidget } from "../interface";
2
+ export default function Checkbox({ state: [checked, setChecked], labels, options, color, }: CheckBoxWidget): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { HTMLInput } from "../interface";
1
+ import { InputWidget } from "../interface";
2
2
  import "react-datepicker/dist/react-datepicker.css";
3
- export default function DatePicker({ options }: HTMLInput): import("react/jsx-runtime").JSX.Element;
3
+ export default function DatePicker({ options }: InputWidget): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { HTMLInput } from "../interface";
2
- export default function EmailInput({ state, placeholder, options }: HTMLInput): import("react/jsx-runtime").JSX.Element;
1
+ import { InputWidget } from "../interface";
2
+ export default function EmailInput({ state, placeholder, options, }: InputWidget): import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,7 @@ const widthSize = {
10
10
  "2xl": "w-144",
11
11
  full: "w-full",
12
12
  };
13
- export default function EmailInput({ state, placeholder, options }) {
13
+ export default function EmailInput({ state, placeholder, options, }) {
14
14
  const { width } = options ?? {};
15
15
  const id = useId();
16
16
  const [value, setValue] = state;
@@ -1,5 +1,5 @@
1
- import { HTMLElement, State } from "../interface";
2
- export interface HTMLToggleElement extends HTMLElement {
1
+ import { Widget, State } from "../interface";
2
+ export interface HTMLToggleElement extends Widget {
3
3
  state: State<boolean>;
4
4
  labels?: [[true, string], [false, string]];
5
5
  }
@@ -1,2 +1,2 @@
1
- import { HTMLLabelElement } from "../../interface";
2
- export default function LabelDesign({ title, onClick, options, hoverState, }: HTMLLabelElement): import("react/jsx-runtime").JSX.Element;
1
+ import { LabelWidget } from "../../interface";
2
+ export default function LabelDesign({ title, onClick, options, hoverState, }: LabelWidget): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { HTMLInput } from "../../interface";
2
- declare function Input({ state, onKeyDown, placeholder, options }: HTMLInput): import("react/jsx-runtime").JSX.Element;
1
+ import { InputWidget } from "../../interface";
2
+ declare function Input({ state, onKeyDown, placeholder, options }: InputWidget): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace Input {
4
- var LG: ({ state, placeholder, flag, type, label }: HTMLInput) => import("react/jsx-runtime").JSX.Element;
4
+ var LG: ({ state, placeholder, flag, type, label }: InputWidget) => import("react/jsx-runtime").JSX.Element;
5
5
  }
6
6
  export default Input;
@@ -1,7 +1,7 @@
1
- import { HTMLLabelElement } from "../../interface";
2
- declare function Label({ title, options }: Omit<HTMLLabelElement, "onClick">): import("react/jsx-runtime").JSX.Element;
1
+ import { LabelWidget } from "../../interface";
2
+ declare function Label({ title, options }: Omit<LabelWidget, "onClick">): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace Label {
4
- var Button: ({ title, hoverTitle, onClick, options, }: Omit<HTMLLabelElement, "hoverState"> & {
4
+ var Button: ({ title, hoverTitle, onClick, options, }: Omit<LabelWidget, "hoverState"> & {
5
5
  hoverTitle?: string | undefined;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
7
7
  }
@@ -1,2 +1,2 @@
1
- import { HTMLSelectElement } from "../../../interface";
2
- export default function SelectLG<T>({ state, selectOptions, placeholder, options, }: HTMLSelectElement<T>): import("react/jsx-runtime").JSX.Element;
1
+ import { SelectWidget } from "../../../interface";
2
+ export default function SelectLG<T>({ state, selectOptions, placeholder, options, }: SelectWidget<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { HTMLSelectElement } from "../../../interface";
2
- export default function Select<T>({ state, selectOptions, placeholder, options, }: HTMLSelectElement<T>): import("react/jsx-runtime").JSX.Element;
1
+ import { SelectWidget } from "../../../interface";
2
+ export default function Select<T>({ state, selectOptions, placeholder, options, }: SelectWidget<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { SwitchProps } from "../../../interface/widget";
1
+ import { SwitchProps } from "../../../interface";
2
2
  declare function Switch<T>({ state, values, display, options }: SwitchProps<T>): import("react/jsx-runtime").JSX.Element;
3
3
  export default Switch;
@@ -1,56 +0,0 @@
1
- import { Disabled, OnClick, Size, State } from "./Property";
2
- export declare const HTMLElementType: {
3
- readonly TEXT: "text";
4
- readonly BUTTON: "button";
5
- readonly INPUT: "input";
6
- readonly SELECT: "select";
7
- readonly TOGGLE: "toggle";
8
- };
9
- export type HTMLElementType = (typeof HTMLElementType)[keyof typeof HTMLElementType];
10
- export interface HTMLElement {
11
- options?: {
12
- className?: string;
13
- width?: Size;
14
- height?: Size;
15
- background?: string;
16
- text?: string;
17
- disabled?: Disabled;
18
- rounded?: string;
19
- };
20
- }
21
- export interface HTMLLabelElement extends HTMLElement {
22
- title: string;
23
- hoverState?: State<boolean>;
24
- onClick?: OnClick;
25
- }
26
- export type SelectOption<T> = [T, string];
27
- export interface HTMLSelectElement<T> extends HTMLElement {
28
- state: State<T>;
29
- selectOptions?: SelectOption<T>[];
30
- placeholder?: string;
31
- }
32
- type HTMLInputType = "text" | "password" | "date" | "email" | "phone" | "number";
33
- export interface HTMLInput extends HTMLElement {
34
- state: State<string> | State<string | undefined>;
35
- onKeyDown?: (e: React.KeyboardEvent) => void;
36
- placeholder?: string;
37
- flag?: boolean;
38
- type?: HTMLInputType;
39
- label?: HTMLLabelElement;
40
- }
41
- export type ColorType = "red" | "blue" | "green";
42
- export interface HTMLCheckBoxElement extends HTMLElement {
43
- state: State<boolean>;
44
- labels: string;
45
- color: ColorType;
46
- }
47
- export interface HTMLElementFrame {
48
- title: string;
49
- type: HTMLElementType;
50
- state: State<any>;
51
- selectOptions?: SelectOption<string | number>[];
52
- labels?: [string | boolean, string][];
53
- disabled?: Disabled;
54
- onClick?: OnClick;
55
- }
56
- export {};
@@ -1,7 +0,0 @@
1
- export const HTMLElementType = {
2
- TEXT: "text",
3
- BUTTON: "button",
4
- INPUT: "input",
5
- SELECT: "select",
6
- TOGGLE: "toggle",
7
- };