@sharadox/graphical-user-interface-web-library 0.0.0-stage → 0.2.0-fields.6

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 (151) hide show
  1. package/LICENCA.md +76 -0
  2. package/LICENSE.md +76 -0
  3. package/NOTICE.md +3 -0
  4. package/README.md +174 -2
  5. package/distribution/box/index.d.ts +14 -0
  6. package/distribution/box/index.d.ts.map +1 -0
  7. package/distribution/box/index.js +52 -0
  8. package/distribution/box/index.js.map +1 -0
  9. package/distribution/box/index.module.css +1 -0
  10. package/distribution/box/index.module.scss +130 -0
  11. package/distribution/box/type.d.ts +56 -0
  12. package/distribution/box/type.d.ts.map +1 -0
  13. package/distribution/box/type.js +2 -0
  14. package/distribution/box/type.js.map +1 -0
  15. package/distribution/box-axis/index.d.ts +24 -0
  16. package/distribution/box-axis/index.d.ts.map +1 -0
  17. package/distribution/box-axis/index.js +114 -0
  18. package/distribution/box-axis/index.js.map +1 -0
  19. package/distribution/box-axis/type.d.ts +15 -0
  20. package/distribution/box-axis/type.d.ts.map +1 -0
  21. package/distribution/box-axis/type.js +2 -0
  22. package/distribution/box-axis/type.js.map +1 -0
  23. package/distribution/button/index.d.ts +15 -0
  24. package/distribution/button/index.d.ts.map +1 -0
  25. package/distribution/button/index.js +42 -0
  26. package/distribution/button/index.js.map +1 -0
  27. package/distribution/button/type.d.ts +37 -0
  28. package/distribution/button/type.d.ts.map +1 -0
  29. package/distribution/button/type.js +2 -0
  30. package/distribution/button/type.js.map +1 -0
  31. package/distribution/button-axis/index.d.ts +13 -0
  32. package/distribution/button-axis/index.d.ts.map +1 -0
  33. package/distribution/button-axis/index.js +13 -0
  34. package/distribution/button-axis/index.js.map +1 -0
  35. package/distribution/checkbox/index.d.ts +10 -0
  36. package/distribution/checkbox/index.d.ts.map +1 -0
  37. package/distribution/checkbox/index.js +21 -0
  38. package/distribution/checkbox/index.js.map +1 -0
  39. package/distribution/checkbox/type.d.ts +9 -0
  40. package/distribution/checkbox/type.d.ts.map +1 -0
  41. package/distribution/checkbox/type.js +2 -0
  42. package/distribution/checkbox/type.js.map +1 -0
  43. package/distribution/choice/index.d.ts +11 -0
  44. package/distribution/choice/index.d.ts.map +1 -0
  45. package/distribution/choice/index.js +35 -0
  46. package/distribution/choice/index.js.map +1 -0
  47. package/distribution/choice/type.d.ts +19 -0
  48. package/distribution/choice/type.d.ts.map +1 -0
  49. package/distribution/choice/type.js +2 -0
  50. package/distribution/choice/type.js.map +1 -0
  51. package/distribution/field/index.d.ts +11 -0
  52. package/distribution/field/index.d.ts.map +1 -0
  53. package/distribution/field/index.js +26 -0
  54. package/distribution/field/index.js.map +1 -0
  55. package/distribution/field/index.module.css +1 -0
  56. package/distribution/field/index.module.scss +21 -0
  57. package/distribution/field/type.d.ts +23 -0
  58. package/distribution/field/type.d.ts.map +1 -0
  59. package/distribution/field/type.js +2 -0
  60. package/distribution/field/type.js.map +1 -0
  61. package/distribution/interface-configuration/index.d.ts +23 -0
  62. package/distribution/interface-configuration/index.d.ts.map +1 -0
  63. package/distribution/interface-configuration/index.js +160 -0
  64. package/distribution/interface-configuration/index.js.map +1 -0
  65. package/distribution/interface-configuration/type.d.ts +83 -0
  66. package/distribution/interface-configuration/type.d.ts.map +1 -0
  67. package/distribution/interface-configuration/type.js +2 -0
  68. package/distribution/interface-configuration/type.js.map +1 -0
  69. package/distribution/interface-style/index.d.ts +11 -0
  70. package/distribution/interface-style/index.d.ts.map +1 -0
  71. package/distribution/interface-style/index.js +14 -0
  72. package/distribution/interface-style/index.js.map +1 -0
  73. package/distribution/interface-style/type.d.ts +6 -0
  74. package/distribution/interface-style/type.d.ts.map +1 -0
  75. package/distribution/interface-style/type.js +2 -0
  76. package/distribution/interface-style/type.js.map +1 -0
  77. package/distribution/interface-styles/index.d.ts +13 -0
  78. package/distribution/interface-styles/index.d.ts.map +1 -0
  79. package/distribution/interface-styles/index.js +37 -0
  80. package/distribution/interface-styles/index.js.map +1 -0
  81. package/distribution/radio-group/index.d.ts +11 -0
  82. package/distribution/radio-group/index.d.ts.map +1 -0
  83. package/distribution/radio-group/index.js +27 -0
  84. package/distribution/radio-group/index.js.map +1 -0
  85. package/distribution/radio-group/index.module.css +1 -0
  86. package/distribution/radio-group/index.module.scss +10 -0
  87. package/distribution/radio-group/type.d.ts +25 -0
  88. package/distribution/radio-group/type.d.ts.map +1 -0
  89. package/distribution/radio-group/type.js +2 -0
  90. package/distribution/radio-group/type.js.map +1 -0
  91. package/distribution/responsive/index.d.ts +10 -0
  92. package/distribution/responsive/index.d.ts.map +1 -0
  93. package/distribution/responsive/index.js +23 -0
  94. package/distribution/responsive/index.js.map +1 -0
  95. package/distribution/responsive/type.d.ts +12 -0
  96. package/distribution/responsive/type.d.ts.map +1 -0
  97. package/distribution/responsive/type.js +2 -0
  98. package/distribution/responsive/type.js.map +1 -0
  99. package/distribution/spinner/index.d.ts +11 -0
  100. package/distribution/spinner/index.d.ts.map +1 -0
  101. package/distribution/spinner/index.js +16 -0
  102. package/distribution/spinner/index.js.map +1 -0
  103. package/distribution/spinner/index.module.css +1 -0
  104. package/distribution/spinner/index.module.scss +41 -0
  105. package/distribution/spinner/type.d.ts +4 -0
  106. package/distribution/spinner/type.d.ts.map +1 -0
  107. package/distribution/spinner/type.js +2 -0
  108. package/distribution/spinner/type.js.map +1 -0
  109. package/distribution/style-sheet/index.d.ts +18 -0
  110. package/distribution/style-sheet/index.d.ts.map +1 -0
  111. package/distribution/style-sheet/index.js +166 -0
  112. package/distribution/style-sheet/index.js.map +1 -0
  113. package/distribution/style-switch/index.d.ts +10 -0
  114. package/distribution/style-switch/index.d.ts.map +1 -0
  115. package/distribution/style-switch/index.js +16 -0
  116. package/distribution/style-switch/index.js.map +1 -0
  117. package/distribution/style-switch/type.d.ts +15 -0
  118. package/distribution/style-switch/type.d.ts.map +1 -0
  119. package/distribution/style-switch/type.js +2 -0
  120. package/distribution/style-switch/type.js.map +1 -0
  121. package/distribution/switch/index.d.ts +11 -0
  122. package/distribution/switch/index.d.ts.map +1 -0
  123. package/distribution/switch/index.js +44 -0
  124. package/distribution/switch/index.js.map +1 -0
  125. package/distribution/switch/index.module.css +1 -0
  126. package/distribution/switch/index.module.scss +67 -0
  127. package/distribution/switch/type.d.ts +20 -0
  128. package/distribution/switch/type.d.ts.map +1 -0
  129. package/distribution/switch/type.js +2 -0
  130. package/distribution/switch/type.js.map +1 -0
  131. package/distribution/text-field/index.d.ts +13 -0
  132. package/distribution/text-field/index.d.ts.map +1 -0
  133. package/distribution/text-field/index.js +20 -0
  134. package/distribution/text-field/index.js.map +1 -0
  135. package/distribution/text-field/index.module.css +1 -0
  136. package/distribution/text-field/index.module.scss +37 -0
  137. package/distribution/text-field/type.d.ts +27 -0
  138. package/distribution/text-field/type.d.ts.map +1 -0
  139. package/distribution/text-field/type.js +2 -0
  140. package/distribution/text-field/type.js.map +1 -0
  141. package/distribution/toggle-mark/index.d.ts +11 -0
  142. package/distribution/toggle-mark/index.d.ts.map +1 -0
  143. package/distribution/toggle-mark/index.js +18 -0
  144. package/distribution/toggle-mark/index.js.map +1 -0
  145. package/distribution/toggle-mark/index.module.css +1 -0
  146. package/distribution/toggle-mark/index.module.scss +57 -0
  147. package/distribution/toggle-mark/type.d.ts +13 -0
  148. package/distribution/toggle-mark/type.d.ts.map +1 -0
  149. package/distribution/toggle-mark/type.js +2 -0
  150. package/distribution/toggle-mark/type.js.map +1 -0
  151. package/package.json +99 -3
@@ -0,0 +1,27 @@
1
+ import type { InputHTMLAttributes, ReactNode, TextareaHTMLAttributes } from "react";
2
+ import type { BoxLook, BoxState } from "@sharadox/graphical-user-interface-web-library/box/type";
3
+ /** What a text field shares, one line or many. */
4
+ interface TextFieldLook extends Pick<BoxLook, "variant" | "color" | "colorStyle" | "corner" | "line" | "size"> {
5
+ label: ReactNode;
6
+ hideLabel?: boolean;
7
+ hint?: ReactNode;
8
+ /** What is wrong: the field turns to the error color and the input is marked invalid. */
9
+ error?: ReactNode;
10
+ /** A section before the input (a currency, an icon), at least square. */
11
+ prefix?: ReactNode;
12
+ /** A section after the input (a unit, a button), at least square. */
13
+ suffix?: ReactNode;
14
+ /** Forces a state (for the design system); otherwise it follows the pointer and `disabled`. */
15
+ state?: BoxState;
16
+ /** The field box's class (the label, hint and error sit around it). */
17
+ className?: string;
18
+ }
19
+ /** A text field: one line, or with `multiline` a text area. */
20
+ export type TextFieldProperties = (TextFieldLook & Omit<InputHTMLAttributes<HTMLInputElement>, "color" | "prefix" | "size"> & {
21
+ multiline?: false;
22
+ }) | (TextFieldLook & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "color" | "prefix"> & {
23
+ /** Many lines: a text area, `rows` high (3 by default), growing taller by hand. */
24
+ multiline: true;
25
+ });
26
+ export {};
27
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/text-field/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AAEjG,kDAAkD;AAClD,UAAU,aAAc,SAAQ,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5G,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yFAAyF;IACzF,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,yEAAyE;IACzE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,qEAAqE;IACrE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,+DAA+D;AAC/D,MAAM,MAAM,mBAAmB,GAC3B,CAAC,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,GAClH,CAAC,aAAa,GACZ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IACtE,mFAAmF;IACnF,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/text-field/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { ToggleMarkProperties } from "@sharadox/graphical-user-interface-web-library/toggle-mark/type";
2
+ /**
3
+ * A checkbox's or a radio's mark beside its label: the native input, invisible, lies over a square box drawn like a
4
+ * button (outlined, then filled once checked) holding a check (or a dot), so keyboards, forms and screen readers get
5
+ * the real control. Used by `Checkbox` and `RadioGroup`.
6
+ *
7
+ * @example
8
+ * <ToggleMark type="checkbox" label="Remember me" checked={on} onChange={setOn} />
9
+ */
10
+ export declare function ToggleMark(properties: ToggleMarkProperties): import("react").JSX.Element;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/toggle-mark/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iEAAiE,CAAC;AAG5G;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,oBAAoB,+BA6C1D"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Icon } from "@sharadox/icon-web-library/icon";
3
+ import { classNames } from "@sharadox/web-library/class-name";
4
+ import { Box } from "@sharadox/graphical-user-interface-web-library/box";
5
+ import styles from "./index.module.css";
6
+ /**
7
+ * A checkbox's or a radio's mark beside its label: the native input, invisible, lies over a square box drawn like a
8
+ * button (outlined, then filled once checked) holding a check (or a dot), so keyboards, forms and screen readers get
9
+ * the real control. Used by `Checkbox` and `RadioGroup`.
10
+ *
11
+ * @example
12
+ * <ToggleMark type="checkbox" label="Remember me" checked={on} onChange={setOn} />
13
+ */
14
+ export function ToggleMark(properties) {
15
+ const { type, label, checked, onChange, state, color = "brand", colorStyle, corner, line, size = "small", className, ...input } = properties;
16
+ return (_jsxs("label", { className: classNames(styles.toggle, className), "data-checked": checked || undefined, children: [_jsxs("span", { className: styles.control, children: [_jsx("input", { ...input, type: type, checked: checked, onChange: (event) => onChange(event.target.checked), className: styles.native }), _jsx(Box, { as: "span", square: true, interactive: true, variant: checked ? "filled" : "outlined", color: color, colorStyle: colorStyle, corner: corner ?? (type === "radio" ? "circle" : undefined), line: line, size: size, state: state ?? (input.disabled ? "disabled" : "enabled"), "aria-hidden": "true", className: styles.mark, children: type === "checkbox" ? _jsx(Icon, { name: "check", strokeWidth: 2.5 }) : _jsx("span", { className: styles.dot }) })] }), _jsx("span", { className: styles.label, children: label })] }));
17
+ }
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/toggle-mark/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AAEzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAC,UAAgC;IACzD,MAAM,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,KAAK,EACL,KAAK,GAAG,OAAO,EACf,UAAU,EACV,MAAM,EACN,IAAI,EACJ,IAAI,GAAG,OAAO,EACd,SAAS,EACT,GAAG,KAAK,EACT,GAAG,UAAU,CAAC;IACf,OAAO,CACL,iBAAO,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,kBAAgB,OAAO,IAAI,SAAS,aACxF,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,mBACM,KAAK,EACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EACnD,SAAS,EAAE,MAAM,CAAC,MAAM,GACxB,EACF,KAAC,GAAG,IACF,EAAE,EAAC,MAAM,EACT,MAAM,QACN,WAAW,QACX,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,EACxC,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,EAC3D,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,iBAC7C,MAAM,EAClB,SAAS,EAAE,MAAM,CAAC,IAAI,YAErB,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAE,GAAG,GAAI,CAAC,CAAC,CAAC,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,GAC5F,IACD,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,KAAK,GAAQ,IACvC,CACT,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ :where(.toggle){display:inline-flex;align-items:center;gap:var(--scale-8);cursor:pointer;text-align:start}:where(.control){position:relative;display:inline-flex;flex:none}:where(.native){position:absolute;z-index:1;inset:0;margin:0;opacity:0;cursor:inherit}:where(.native):disabled{cursor:default}:where(.toggle:has(.native:disabled)){cursor:default}:where(.native:focus-visible+.mark){outline:var(--focus-thickness) solid var(--current-color);outline-offset:var(--focus-offset)}:where(.mark)>*>:where(svg,.dot){transform:scale(0);transition:transform var(--duration) var(--easing)}:where(.toggle[data-checked] .mark)>*>:where(svg,.dot){transform:scale(1)}:where(.dot){inline-size:.5em;block-size:.5em;border-radius:var(--corner-radius);background:currentcolor}:where(.label){font-size:var(--current-font-size)}
@@ -0,0 +1,57 @@
1
+ :where(.toggle) {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: var(--scale-8);
5
+ cursor: pointer;
6
+ text-align: start;
7
+ }
8
+
9
+ :where(.control) {
10
+ position: relative;
11
+ display: inline-flex;
12
+ flex: none;
13
+ }
14
+
15
+ // The real input, invisible, over the drawn mark: it takes the clicks, the keyboard and the form.
16
+ :where(.native) {
17
+ position: absolute;
18
+ z-index: 1;
19
+ inset: 0;
20
+ margin: 0;
21
+ opacity: 0;
22
+ cursor: inherit;
23
+
24
+ &:disabled {
25
+ cursor: default;
26
+ }
27
+ }
28
+
29
+ :where(.toggle:has(.native:disabled)) {
30
+ cursor: default;
31
+ }
32
+
33
+ :where(.native:focus-visible + .mark) {
34
+ outline: var(--focus-thickness) solid var(--current-color);
35
+ outline-offset: var(--focus-offset);
36
+ }
37
+
38
+ // The check (or dot) grows in when checked and shrinks away when not.
39
+ :where(.mark) > * > :where(svg, .dot) {
40
+ transform: scale(0);
41
+ transition: transform var(--duration) var(--easing);
42
+ }
43
+
44
+ :where(.toggle[data-checked] .mark) > * > :where(svg, .dot) {
45
+ transform: scale(1);
46
+ }
47
+
48
+ :where(.dot) {
49
+ inline-size: 0.5em;
50
+ block-size: 0.5em;
51
+ border-radius: var(--corner-radius);
52
+ background: currentcolor;
53
+ }
54
+
55
+ :where(.label) {
56
+ font-size: var(--current-font-size);
57
+ }
@@ -0,0 +1,13 @@
1
+ import type { InputHTMLAttributes, ReactNode } from "react";
2
+ import type { BoxLook, BoxState } from "@sharadox/graphical-user-interface-web-library/box/type";
3
+ /** A checkbox's or a radio's mark and label. */
4
+ export interface ToggleMarkProperties extends Pick<BoxLook, "color" | "colorStyle" | "corner" | "line" | "size">, Omit<InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "type" | "onChange" | "checked" | "defaultChecked"> {
5
+ type: "checkbox" | "radio";
6
+ label: ReactNode;
7
+ /** Whether it is checked (the owner keeps the state). */
8
+ checked: boolean;
9
+ onChange: (checked: boolean) => void;
10
+ /** Forces a state (for the design system). */
11
+ state?: BoxState;
12
+ }
13
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/toggle-mark/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AAEjG,gDAAgD;AAChD,MAAM,WAAW,oBACf,SACE,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,EAClE,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;IACpH,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,8CAA8C;IAC9C,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/toggle-mark/type.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,102 @@
1
1
  {
2
2
  "name": "@sharadox/graphical-user-interface-web-library",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0-fields.6",
4
+ "description": "One generic, accessible, fully configurable component library: every interface piece in every variant, color, corner, line, size and state, styled from a single source of truth that each brand configures.",
5
+ "private": false,
6
+ "license": "SEE LICENSE IN LICENCA.md",
7
+ "author": "Sharadox <contact@sharadox.com>",
8
+ "type": "module",
9
+ "exports": {
10
+ "./*/type": {
11
+ "sharadox-source": "./source/*/type.ts",
12
+ "types": "./distribution/*/type.d.ts"
13
+ },
14
+ "./*": {
15
+ "sharadox-source": [
16
+ "./source/*/index.ts",
17
+ "./source/*/index.tsx"
18
+ ],
19
+ "types": "./distribution/*/index.d.ts",
20
+ "default": "./distribution/*/index.js"
21
+ }
22
+ },
23
+ "files": [
24
+ "distribution",
25
+ "LICENCA.md",
26
+ "LICENSE.md",
27
+ "NOTICE.md"
28
+ ],
29
+ "sideEffects": [
30
+ "**/*.css"
31
+ ],
32
+ "engines": {
33
+ "node": ">=26"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "peerDependencies": {
39
+ "next": ">=16",
40
+ "react": ">=19"
41
+ },
42
+ "peerDependenciesMeta": {
43
+ "react": {
44
+ "optional": true
45
+ }
46
+ },
47
+ "lint-staged": {
48
+ "*.{ts,tsx,js,mjs,cjs}": [
49
+ "prettier --write",
50
+ "eslint --fix --max-warnings=0"
51
+ ],
52
+ "*.{json,md,yml,yaml,scss}": "prettier --write"
53
+ },
54
+ "dependencies": {
55
+ "@sharadox/icon-web-library": "0.7.0-development.36",
56
+ "@sharadox/style-web-library": "^0.3.1",
57
+ "@sharadox/web-library": "^0.11.1"
58
+ },
59
+ "devDependencies": {
60
+ "@sharadox/es-lint-configuration-web-library": "^0.1.3",
61
+ "@sharadox/library-build-web-library": "^0.2.1",
62
+ "@sharadox/prettier-configuration-web-library": "^0.1.2",
63
+ "@sharadox/turborepo-configuration-web-library": "^0.1.4",
64
+ "@sharadox/type-script-configuration-web-library": "^0.2.3",
65
+ "@sharadox/vitest-configuration-web-library": "^0.2.1",
66
+ "@testing-library/dom": "^10.4.2",
67
+ "@testing-library/react": "^16.3.3",
68
+ "@types/node": "^26.6.6",
69
+ "@types/react": "^19.3.0",
70
+ "@types/react-dom": "^19.3.0",
71
+ "@vitest/coverage-v8": "^5.1.1",
72
+ "eslint": "9.39.5",
73
+ "happy-dom": "^21.0.4",
74
+ "husky": "^9.1.7",
75
+ "lint-staged": "^17.6.2",
76
+ "next": "16.4.5",
77
+ "prettier": "^3.10.1",
78
+ "react": "^19.3.1",
79
+ "react-dom": "^19.3.1",
80
+ "sass": "^1.108.2",
81
+ "turbo": "^2.11.13",
82
+ "typedoc": "^0.28.20",
83
+ "typescript": "6.0.3",
84
+ "vitest": "^5.1.1"
85
+ },
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "git+https://github.com/Sharadox/graphical-user-interface-web-library.git"
89
+ },
90
+ "homepage": "https://github.com/Sharadox/graphical-user-interface-web-library#readme",
91
+ "scripts": {
92
+ "build": "library-build",
93
+ "lint": "eslint --max-warnings=0 .",
94
+ "format": "prettier --write .",
95
+ "format:check": "prettier --check .",
96
+ "type-check": "tsc --noEmit",
97
+ "test:unit": "vitest run --coverage",
98
+ "test:benchmark": "vitest bench --run --passWithNoTests",
99
+ "documentation": "typedoc",
100
+ "verify": "turbo run format:check lint type-check test:unit test:benchmark build"
101
+ }
6
102
  }