@apple-pie/slice 0.1.6 → 0.1.8

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 (179) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/chunks/{Avatar-YNcGDUzr.js → Avatar-8XLnVICd.js} +6 -4
  3. package/dist/cjs/chunks/{AvatarGroup-Dn5R1XIU.js → AvatarGroup-BhKZvX8M.js} +1 -1
  4. package/dist/cjs/chunks/{Button-Ck4syxwn.js → Button-D8_eyuOA.js} +9 -6
  5. package/dist/cjs/chunks/{ButtonBar-Cx9Xwddh.js → ButtonBar-DwMLfvi8.js} +11 -15
  6. package/dist/cjs/chunks/{Camera-BrLRwcw1.js → Camera-CxHdYGEa.js} +11 -8
  7. package/dist/cjs/chunks/{Card-CYDP4vAN.js → Card-D4YkmNC7.js} +5 -8
  8. package/dist/cjs/chunks/{CheckBox-DYG1fNWy.js → CheckBox-CmTQ6KW1.js} +9 -14
  9. package/dist/cjs/chunks/{Chip-CqOwsrmt.js → Chip-CwMJOnBV.js} +5 -5
  10. package/dist/cjs/chunks/{DivInput-C73sqUF3.js → DivInput-DdZA8S1k.js} +1 -1
  11. package/dist/cjs/chunks/{DocIcons-B5TcBqSH.js → DocIcons-BZI6JMyw.js} +1 -1
  12. package/dist/cjs/chunks/{DrggablePanel-BzvBBhS7.js → DrggablePanel-CkhCXqKv.js} +1 -1
  13. package/dist/cjs/chunks/{DropDown-Bo0bxkFk.js → DropDown-Ce8aU2va.js} +2 -2
  14. package/dist/cjs/chunks/{FileIcon-hYwcre20.js → FileIcon-CZLe2S2l.js} +3 -3
  15. package/dist/cjs/chunks/{FileList-bA8PoGOh.js → FileList-tivoUJSP.js} +11 -4
  16. package/dist/cjs/chunks/{Grouper-BszVihfB.js → Grouper-BbovOSYw.js} +8 -7
  17. package/dist/cjs/chunks/{_types-NyUTfBLR.js → Icon-N0YJuKQf.js} +68 -44
  18. package/dist/cjs/chunks/{IconButton-yWq-C437.js → IconButton-BXotgG2u.js} +9 -6
  19. package/dist/cjs/chunks/{Label-D15cIroT.js → Label-CZvJbATa.js} +16 -11
  20. package/dist/cjs/chunks/{Overlay-DL0EJDyk.js → Overlay-BX6vXX9F.js} +1 -1
  21. package/dist/cjs/chunks/{Pager-TUxcWbmn.js → Pager-Da9AqSFN.js} +1 -1
  22. package/dist/cjs/chunks/{ProgressIndicator-Dvq4eIWW.js → ProgressIndicator-opbbADog.js} +2 -2
  23. package/dist/cjs/chunks/{PromptInput-Hgh6995X.js → PromptInput-tA4fpOTk.js} +1 -1
  24. package/dist/cjs/chunks/{RadioButton-Cu-laBV5.js → RadioButton-B8GIKGm-.js} +9 -10
  25. package/dist/cjs/chunks/{RadioButtonList-COS7jfsC.js → RadioButtonList-3o1IvhdC.js} +11 -5
  26. package/dist/cjs/chunks/{SSEConnection-B_yE8cXz.js → SSEConnection-C-1OzEOp.js} +29 -15
  27. package/dist/cjs/chunks/{Slider-BeXrWjVx.js → Slider-CnXBacf-.js} +65 -36
  28. package/dist/cjs/chunks/{Switch-Xqf0vwul.js → Switch-BiTshVLM.js} +6 -3
  29. package/dist/cjs/chunks/{TabBar-DCRr3l9L.js → TabBar-DZ2y7owf.js} +48 -12
  30. package/dist/cjs/chunks/{TextArea-DM0aHGGt.js → TextArea-DXcMRUfI.js} +1 -1
  31. package/dist/cjs/chunks/{TextField-DQgpDpR1.js → TextField-CkfTNM6_.js} +11 -6
  32. package/dist/cjs/chunks/{Tip-ik8-p4_4.js → Tip-59T3TUN4.js} +1 -1
  33. package/dist/cjs/chunks/{Toast-D-Y1Ytnb.js → Toast-skIBuJ3b.js} +2 -2
  34. package/dist/cjs/chunks/{UploadArea-Y_B35qjZ.js → UploadArea-B8mJRc0a.js} +15 -10
  35. package/dist/cjs/chunks/{WSConnection-DCBuJGmb.js → WSConnection-DrOC8Z0R.js} +32 -23
  36. package/dist/cjs/chunks/_types-BD6txsj1.js +118 -0
  37. package/dist/cjs/chunks/{colors-uej0anrN.js → colors-njquvHkx.js} +1 -1
  38. package/dist/cjs/chunks/debounce-BF4i6uIC.js +18 -0
  39. package/dist/cjs/chunks/{misc-C-M6KKsH.js → misc-BTF7BCZW.js} +21 -12
  40. package/dist/cjs/chunks/{sseStore-CIIeshjm.js → sseStore-1OeJ9TRP.js} +1 -1
  41. package/dist/cjs/components/Avatar/index.js +2 -2
  42. package/dist/cjs/components/AvatarGroup/index.js +2 -2
  43. package/dist/cjs/components/Button/index.js +3 -3
  44. package/dist/cjs/components/ButtonBar/index.js +3 -3
  45. package/dist/cjs/components/Camera/index.js +4 -4
  46. package/dist/cjs/components/Card/index.js +5 -6
  47. package/dist/cjs/components/CheckBox/index.js +6 -7
  48. package/dist/cjs/components/Chip/index.js +2 -2
  49. package/dist/cjs/components/DivInput/index.js +2 -2
  50. package/dist/cjs/components/DocIcon/index.js +1 -1
  51. package/dist/cjs/components/DraggablePanel/index.js +2 -2
  52. package/dist/cjs/components/DropDown/index.js +2 -2
  53. package/dist/cjs/components/FileIcon/index.js +2 -2
  54. package/dist/cjs/components/FileList/index.js +4 -4
  55. package/dist/cjs/components/Grouper/index.js +3 -3
  56. package/dist/cjs/components/Icon/index.js +3 -8
  57. package/dist/cjs/components/IconButton/index.js +3 -3
  58. package/dist/cjs/components/Label/index.js +2 -2
  59. package/dist/cjs/components/Overlay/index.js +1 -1
  60. package/dist/cjs/components/Pager/index.js +2 -2
  61. package/dist/cjs/components/Progress/index.js +3 -3
  62. package/dist/cjs/components/PromptInput/index.js +6 -6
  63. package/dist/cjs/components/RadioButton/index.js +2 -2
  64. package/dist/cjs/components/RadioButtonList/index.js +7 -7
  65. package/dist/cjs/components/Slider/index.js +4 -3
  66. package/dist/cjs/components/Switch/index.js +1 -1
  67. package/dist/cjs/components/TabBar/index.js +3 -3
  68. package/dist/cjs/components/TextArea/index.js +6 -7
  69. package/dist/cjs/components/Textfield/index.js +5 -5
  70. package/dist/cjs/components/Tip/index.js +2 -2
  71. package/dist/cjs/components/Toast/index.js +2 -2
  72. package/dist/cjs/components/UploadArea/index.js +6 -6
  73. package/dist/cjs/hooks/useTrackRenders.js +1 -1
  74. package/dist/cjs/index.js +9 -14
  75. package/dist/cjs/stores/SSE.js +2 -2
  76. package/dist/cjs/stores/WS.js +1 -1
  77. package/dist/cjs/stores.js +2 -2
  78. package/dist/cjs/utils/index.js +4 -3
  79. package/dist/cjs/utils/objects/index.js +1 -1
  80. package/dist/esm/chunks/{Avatar-CDMV6f9w.mjs → Avatar-DGRMsHdO.mjs} +7 -5
  81. package/dist/esm/chunks/{AvatarGroup-BZ18GwhK.mjs → AvatarGroup-C9Ka1e9P.mjs} +1 -1
  82. package/dist/esm/chunks/{Button-DexmN81C.mjs → Button-DAvVj4YV.mjs} +8 -5
  83. package/dist/esm/chunks/{ButtonBar-C-LwBxlY.mjs → ButtonBar-Cw73kooJ.mjs} +11 -15
  84. package/dist/esm/chunks/{Camera-DdUBZi52.mjs → Camera-BrdJGlv6.mjs} +12 -9
  85. package/dist/esm/chunks/{Card-DUfnTA5v.mjs → Card-DGlv1PII.mjs} +4 -7
  86. package/dist/esm/chunks/{CheckBox-Bnd3UAt0.mjs → CheckBox-B7UCZvRv.mjs} +9 -14
  87. package/dist/esm/chunks/{Chip-BJS4oJBL.mjs → Chip-BPF7fBba.mjs} +5 -3
  88. package/dist/esm/chunks/{DivInput-B7BliU1p.mjs → DivInput-Ch9XjfWd.mjs} +1 -1
  89. package/dist/esm/chunks/{DocIcons-BxtcXsWI.mjs → DocIcons-B4xsPrXM.mjs} +1 -1
  90. package/dist/esm/chunks/{DrggablePanel-DvactFf5.mjs → DrggablePanel-Ddi0vPRp.mjs} +1 -1
  91. package/dist/esm/chunks/{DropDown-CbX16ETP.mjs → DropDown-Cvf2d_3u.mjs} +1 -1
  92. package/dist/esm/chunks/{FileIcon-CC_k5dUW.mjs → FileIcon-ePouoJpT.mjs} +3 -3
  93. package/dist/esm/chunks/{FileList-E5uvcN2J.mjs → FileList-BHCGzX_0.mjs} +11 -6
  94. package/dist/esm/chunks/{Grouper-X9OursiT.mjs → Grouper-B_FutfjV.mjs} +6 -5
  95. package/dist/esm/chunks/{_types-C8GP_aSD.mjs → Icon-C92f63Ib.mjs} +69 -46
  96. package/dist/esm/chunks/{IconButton-B5WEf-v5.mjs → IconButton-4O5S9S9G.mjs} +9 -6
  97. package/dist/esm/chunks/{Label-DOvquc82.mjs → Label-7ezP3eHw.mjs} +16 -11
  98. package/dist/esm/chunks/{Overlay-Cw9o1fHb.mjs → Overlay-TOzZXnwF.mjs} +1 -1
  99. package/dist/esm/chunks/{Pager-BX4TMwD_.mjs → Pager-BlLYeA2F.mjs} +1 -1
  100. package/dist/esm/chunks/{ProgressIndicator-DeLwB3Rb.mjs → ProgressIndicator-BVwQNOcV.mjs} +1 -1
  101. package/dist/esm/chunks/{PromptInput-BdMotrXA.mjs → PromptInput-pKwwzyAd.mjs} +2 -2
  102. package/dist/esm/chunks/{RadioButton-D6kP8p0n.mjs → RadioButton-COEnChNW.mjs} +9 -10
  103. package/dist/esm/chunks/{RadioButtonList-guQECpwi.mjs → RadioButtonList-De3rbLQb.mjs} +12 -6
  104. package/dist/esm/chunks/{SSEConnection-Dj9P0SWE.mjs → SSEConnection-DcA3wFsO.mjs} +29 -14
  105. package/dist/esm/chunks/{Slider-ZuSvETfo.mjs → Slider-DL2iuNlh.mjs} +69 -34
  106. package/dist/esm/chunks/{Switch-nWg2Ykea.mjs → Switch-Cv6LABsW.mjs} +6 -3
  107. package/dist/esm/chunks/{TabBar-BYtGaj_A.mjs → TabBar-qiozE5zA.mjs} +49 -13
  108. package/dist/esm/chunks/{TextArea-D88dZrXm.mjs → TextArea-yF2pGeel.mjs} +1 -1
  109. package/dist/esm/chunks/{TextField-DvTB_JoS.mjs → TextField-CgnPj6oK.mjs} +11 -6
  110. package/dist/esm/chunks/{Tip-B-cDOFvV.mjs → Tip-CroDIKO4.mjs} +1 -1
  111. package/dist/esm/chunks/{Toast-BdlopzJ6.mjs → Toast-CM493gMR.mjs} +2 -2
  112. package/dist/esm/chunks/{UploadArea--i-bbRIJ.mjs → UploadArea-BNf1y8Ep.mjs} +18 -13
  113. package/dist/esm/chunks/{WSConnection-DlYSitff.mjs → WSConnection-D9mpsVdc.mjs} +32 -23
  114. package/dist/esm/chunks/_types-C2C2Zwd0.mjs +118 -0
  115. package/dist/esm/chunks/{colors-DR9fLI5X.mjs → colors-FQ0uNQcW.mjs} +2 -2
  116. package/dist/esm/chunks/debounce-Bst1jxMS.mjs +19 -0
  117. package/dist/esm/chunks/{misc-cg9I7drO.mjs → misc-N8KLjOXc.mjs} +22 -12
  118. package/dist/esm/chunks/{sseStore-DdqmnAAf.mjs → sseStore-2JIpEKfz.mjs} +1 -1
  119. package/dist/esm/components/Avatar/index.mjs +2 -2
  120. package/dist/esm/components/AvatarGroup/index.mjs +3 -3
  121. package/dist/esm/components/Button/index.mjs +4 -4
  122. package/dist/esm/components/ButtonBar/index.mjs +4 -4
  123. package/dist/esm/components/Camera/index.mjs +5 -5
  124. package/dist/esm/components/Card/index.mjs +3 -3
  125. package/dist/esm/components/CheckBox/index.mjs +5 -5
  126. package/dist/esm/components/Chip/index.mjs +3 -3
  127. package/dist/esm/components/DivInput/index.mjs +2 -2
  128. package/dist/esm/components/DocIcon/index.mjs +1 -1
  129. package/dist/esm/components/DraggablePanel/index.mjs +2 -2
  130. package/dist/esm/components/DropDown/index.mjs +3 -3
  131. package/dist/esm/components/FileIcon/index.mjs +2 -2
  132. package/dist/esm/components/FileList/index.mjs +5 -5
  133. package/dist/esm/components/Grouper/index.mjs +3 -3
  134. package/dist/esm/components/Icon/index.mjs +4 -2
  135. package/dist/esm/components/IconButton/index.mjs +3 -3
  136. package/dist/esm/components/Label/index.mjs +2 -2
  137. package/dist/esm/components/Overlay/index.mjs +1 -1
  138. package/dist/esm/components/Pager/index.mjs +2 -2
  139. package/dist/esm/components/Progress/index.mjs +3 -3
  140. package/dist/esm/components/PromptInput/index.mjs +7 -7
  141. package/dist/esm/components/RadioButton/index.mjs +3 -3
  142. package/dist/esm/components/RadioButtonList/index.mjs +4 -4
  143. package/dist/esm/components/Slider/index.mjs +4 -2
  144. package/dist/esm/components/Switch/index.mjs +1 -1
  145. package/dist/esm/components/TabBar/index.mjs +4 -4
  146. package/dist/esm/components/TextArea/index.mjs +5 -5
  147. package/dist/esm/components/Textfield/index.mjs +6 -6
  148. package/dist/esm/components/Tip/index.mjs +2 -2
  149. package/dist/esm/components/Toast/index.mjs +3 -3
  150. package/dist/esm/components/UploadArea/index.mjs +6 -6
  151. package/dist/esm/hooks/useTrackRenders.mjs +1 -1
  152. package/dist/esm/index.mjs +38 -34
  153. package/dist/esm/stores/SSE.mjs +2 -2
  154. package/dist/esm/stores/WS.mjs +1 -1
  155. package/dist/esm/stores.mjs +2 -2
  156. package/dist/esm/utils/index.mjs +6 -4
  157. package/dist/esm/utils/objects/index.mjs +2 -2
  158. package/dist/types/components/Button/Button.d.ts +3 -3
  159. package/dist/types/components/Button/_types.d.ts +2 -2
  160. package/dist/types/components/Camera/_types.d.ts +1 -0
  161. package/dist/types/components/Card/_types.d.ts +1 -1
  162. package/dist/types/components/Chip/_types.d.ts +1 -2
  163. package/dist/types/components/Grouper/_types.d.ts +1 -1
  164. package/dist/types/components/Icon/_types.d.ts +116 -83
  165. package/dist/types/components/Icon/index.d.ts +1 -1
  166. package/dist/types/components/IconButton/_types.d.ts +2 -2
  167. package/dist/types/components/Label/_types.d.ts +1 -1
  168. package/dist/types/components/RadioButton/_types.d.ts +2 -1
  169. package/dist/types/components/Switch/_types.d.ts +1 -1
  170. package/dist/types/components/TabBar/_types.d.ts +2 -0
  171. package/dist/types/index.d.ts +1 -1
  172. package/dist/types/utils/functions/colors.d.ts +2 -2
  173. package/dist/types/utils/functions/debounce.d.ts +1 -2
  174. package/dist/types/utils/functions/files.d.ts +7 -1
  175. package/dist/types/utils/functions/misc.d.ts +19 -11
  176. package/dist/types/utils/index.d.ts +3 -2
  177. package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +29 -8
  178. package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +32 -20
  179. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ToolTip } from '../sharedTypes';
3
3
  import type { ButtonHandle } from './_types';
4
- export declare const Button: React.NamedExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof {
4
+ export declare const Button: React.NamedExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof {
5
5
  size?: "large" | "medium" | "text";
6
6
  variant?: "solid" | "outline" | "text";
7
7
  state?: "normal" | "hover" | "disabled";
@@ -35,7 +35,7 @@ export declare const Button: React.NamedExoticComponent<Omit<React.HTMLAttribute
35
35
  paddingRight?: number;
36
36
  paddingLeft?: number;
37
37
  onToolTip?: (tip: ToolTip | null) => void;
38
- onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | undefined) => void;
38
+ onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
39
39
  }> & {
40
40
  size?: "large" | "medium" | "text";
41
41
  variant?: "solid" | "outline" | "text";
@@ -70,5 +70,5 @@ export declare const Button: React.NamedExoticComponent<Omit<React.HTMLAttribute
70
70
  paddingRight?: number;
71
71
  paddingLeft?: number;
72
72
  onToolTip?: (tip: ToolTip | null) => void;
73
- onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | undefined) => void;
73
+ onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
74
74
  } & React.RefAttributes<ButtonHandle>>;
@@ -35,9 +35,9 @@ type ButtonBaseProps = {
35
35
  paddingRight?: number;
36
36
  paddingLeft?: number;
37
37
  onToolTip?: (tip: ToolTip | null) => void;
38
- onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | undefined) => void;
38
+ onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
39
39
  };
40
- export type ButtonProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof ButtonBaseProps> & ButtonBaseProps;
40
+ export type ButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonBaseProps> & ButtonBaseProps;
41
41
  export interface ButtonHandle {
42
42
  triggerClick: () => void;
43
43
  }
@@ -62,6 +62,7 @@ export interface BaseCameraProps {
62
62
  videoFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
63
63
  startCameraOff?: boolean;
64
64
  startAudioMuted?: boolean;
65
+ playLocalAudio?: boolean;
65
66
  userProfile?: UserProfile;
66
67
  sessionSettings?: Settings;
67
68
  onVideoStream?: (stream: MediaStream) => void;
@@ -10,5 +10,5 @@ type CardBaseProps = {
10
10
  command?: string;
11
11
  }) => void;
12
12
  };
13
- export type CardProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof CardBaseProps> & CardBaseProps;
13
+ export type CardProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof CardBaseProps> & CardBaseProps;
14
14
  export {};
@@ -1,9 +1,8 @@
1
1
  import type React from 'react';
2
- import type { IconNames } from '../Icon/_types';
3
2
  import type { ToolTip } from '../sharedTypes';
4
3
  type ChipBaseProps = {
5
4
  label?: string;
6
- icon?: IconNames | string;
5
+ icon?: string;
7
6
  disabled?: boolean;
8
7
  focused?: boolean;
9
8
  tooltip?: string;
@@ -16,5 +16,5 @@ type GrouperBaseProps = {
16
16
  onChange?: (state: boolean) => void;
17
17
  onClick?: () => void;
18
18
  };
19
- export type GrouperProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof GrouperBaseProps> & GrouperBaseProps;
19
+ export type GrouperProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof GrouperBaseProps> & GrouperBaseProps;
20
20
  export {};
@@ -12,87 +12,120 @@ type IconBaseProps = {
12
12
  onClick?: (e: React.MouseEvent<SVGElement, MouseEvent>) => void;
13
13
  };
14
14
  export type IconProps = Omit<React.SVGAttributes<SVGSVGElement>, keyof IconBaseProps> & IconBaseProps;
15
- export declare enum IconNames {
16
- target = "target",
17
- video = "video",
18
- mic = "mic",
19
- micMuted = "mic muted",
20
- camera = "camera",
21
- videoOff = "video off",
22
- home = "home",
23
- inbox = "inbox",
24
- sparkle = "sparkle",
25
- people = "people",
26
- wallet = "wallet",
27
- invoice = "invoice",
28
- payment = "payment",
29
- heart = "heart",
30
- clock = "clock",
31
- book = "book",
32
- search = "search",
33
- filter = "filter",
34
- more = "more",
35
- checkbox = "checkbox",
36
- checkboxChecked = "checkbox checked",
37
- checkboxPartial = "checkbox partial",
38
- chevronDown = "chevron down",
39
- chevronUp = "chevron up",
40
- plus = "plus",
41
- plusCircle = "plus circle",
42
- x = "x",
43
- upload = "upload",
44
- download = "download",
45
- share = "share",
46
- checkCircle = "check circle",
47
- circle = "circle",
48
- circleFill = "circle fill",
49
- person = "person",
50
- attach = "attach",
51
- menu = "menu",
52
- help = "help",
53
- blank = "blank",
54
- check = "check",
55
- message = "message",
56
- info = "info",
57
- alert = "alert",
58
- notification = "notification",
59
- arrowUp = "arrow up",
60
- arrowLeft = "arrow left",
61
- arrowRight = "arrow right",
62
- navigate = "navigate",
63
- document = "document",
64
- refresh = "refresh",
65
- recentChats = "recent chats",
66
- trashBin = "trash bin",
67
- dollar = "dollar",
68
- apple = "apple",
69
- view = "view",
70
- openCircle = "open circle",
71
- expanded = "expanded",
72
- concise = "concise",
73
- moderate = "moderate",
74
- mail = "mail",
75
- textDocument = "text document",
76
- edit = "edit",
77
- characterBeam = "character beam",
78
- undo = "undo",
79
- chat = "chat",
80
- exclamation = "exclamation",
81
- chart = "chart",
82
- lightBulb = "light bulb",
83
- settings = "settings",
84
- documentEditor = "document editor",
85
- chartArrow = "chart arrow",
86
- focus = "focus",
87
- briefcase = "briefcase",
88
- globeLocation = "globe location",
89
- barChart = "bar chart",
90
- fontSmaller = "font smaller",
91
- fontLarger = "font larger",
92
- copy = "copy",
93
- stop = "stop",
94
- like = "like",
95
- unlike = "unlike",
96
- highlight = "highlight"
97
- }
15
+ export declare const SliceIcons: {
16
+ readonly arrows: {
17
+ readonly arrowLeft: "arrow left";
18
+ readonly arrowRight: "arrow right";
19
+ readonly arrowUp: "arrow up";
20
+ readonly arrowDown: "arrow down";
21
+ readonly chevronDown: "chevron down";
22
+ readonly chevronUp: "chevron up";
23
+ readonly navigateRight: "navigate right";
24
+ readonly navigateLeft: "navigate left";
25
+ readonly share: "share";
26
+ };
27
+ readonly selection: {
28
+ readonly check: "check";
29
+ readonly checkCircle: "check circle";
30
+ readonly checkbox: "checkbox";
31
+ readonly checkboxChecked: "checkbox checked";
32
+ readonly checkboxPartial: "checkbox partial";
33
+ readonly circle: "circle";
34
+ readonly circleFill: "circle fill";
35
+ readonly plus: "plus";
36
+ readonly plusCircle: "plus circle";
37
+ };
38
+ readonly Messaging: {
39
+ readonly chat: "chat";
40
+ readonly mail: "mail";
41
+ readonly notification: "notification";
42
+ readonly inbox: "inbox";
43
+ readonly like: "like";
44
+ readonly unlike: "unlike";
45
+ };
46
+ readonly media: {
47
+ readonly camera: "camera";
48
+ readonly focus: "focus";
49
+ readonly mic: "mic";
50
+ readonly micMuted: "mic muted";
51
+ readonly video: "video";
52
+ readonly videoOff: "video off";
53
+ readonly download: "download";
54
+ readonly upload: "upload";
55
+ };
56
+ readonly files: {
57
+ readonly document: "document";
58
+ readonly documentEditor: "document editor";
59
+ readonly textDocument: "text document";
60
+ };
61
+ readonly people: {
62
+ readonly people: "people";
63
+ readonly person: "person";
64
+ };
65
+ readonly business: {
66
+ readonly briefcase: "briefcase";
67
+ readonly dollar: "dollar";
68
+ readonly invoice: "invoice";
69
+ readonly payment: "payment";
70
+ readonly wallet: "wallet";
71
+ };
72
+ readonly charts: {
73
+ readonly barChart: "bar chart";
74
+ readonly chart: "chart";
75
+ readonly chartArrow: "chart arrow";
76
+ };
77
+ readonly status: {
78
+ readonly alert: "alert";
79
+ readonly exclamation: "exclamation";
80
+ readonly help: "help";
81
+ readonly info: "info";
82
+ readonly issue: "issue";
83
+ readonly lightBulb: "light bulb";
84
+ readonly target: "target";
85
+ readonly openCircle: "open circle";
86
+ };
87
+ readonly brands: {
88
+ readonly apple: "apple";
89
+ readonly google: "google";
90
+ readonly googleMono: "google mono";
91
+ readonly linkedin: "linkedin";
92
+ };
93
+ readonly edit: {
94
+ readonly edit: "edit";
95
+ readonly trashBin: "trash bin";
96
+ readonly copy: "copy";
97
+ readonly filter: "filter";
98
+ readonly highlight: "highlight";
99
+ readonly undo: "undo";
100
+ readonly concise: "concise";
101
+ readonly expanded: "expanded";
102
+ readonly moderate: "moderate";
103
+ readonly recent: "recent";
104
+ };
105
+ readonly typography: {
106
+ readonly fontLarger: "font larger";
107
+ readonly fontSmaller: "font smaller";
108
+ readonly characterBeam: "character beam";
109
+ };
110
+ readonly ai: {
111
+ readonly sparkle: "sparkle";
112
+ readonly wand: "wand";
113
+ };
114
+ readonly ui: {
115
+ readonly attach: "attach";
116
+ readonly blank: "blank";
117
+ readonly book: "book";
118
+ readonly globeLocation: "globe location";
119
+ readonly heart: "heart";
120
+ readonly stop: "stop";
121
+ readonly search: "search";
122
+ readonly settings: "settings";
123
+ readonly view: "view";
124
+ readonly refresh: "refresh";
125
+ readonly home: "home";
126
+ readonly menu: "menu";
127
+ readonly more: "more";
128
+ readonly x: "x";
129
+ };
130
+ };
98
131
  export {};
@@ -1,2 +1,2 @@
1
1
  export { Icon } from './Icon';
2
- export { IconNames } from './_types';
2
+ export { SliceIcons } from './_types';
@@ -27,8 +27,8 @@ type IconButtonBaseProps = {
27
27
  animate?: string;
28
28
  exit?: string;
29
29
  borderRadius?: number;
30
- onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
30
+ onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
31
31
  onToolTip?: (tip: ToolTip | null) => void;
32
32
  };
33
- export type IconButtonProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof IconButtonBaseProps> & IconButtonBaseProps;
33
+ export type IconButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof IconButtonBaseProps> & IconButtonBaseProps;
34
34
  export {};
@@ -12,5 +12,5 @@ type LabelBaseProps = {
12
12
  size?: 's' | 'm' | 'l';
13
13
  onClick?: (e: React.MouseEvent<any>) => void;
14
14
  };
15
- export type LabelProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof LabelBaseProps> & LabelBaseProps;
15
+ export type LabelProps = Omit<React.HTMLAttributes<HTMLElement>, keyof LabelBaseProps> & LabelBaseProps;
16
16
  export {};
@@ -9,6 +9,7 @@ export type RadioButtonOption = {
9
9
  type RadioButtonBaseProps = {
10
10
  selected?: boolean;
11
11
  option: RadioButtonOption;
12
+ controlType?: 'radio' | 'checkbox';
12
13
  deselect?: boolean;
13
14
  tabIndex?: number;
14
15
  wrap?: boolean;
@@ -21,5 +22,5 @@ type RadioButtonBaseProps = {
21
22
  checkedIcon?: 'check circle' | 'circle fill';
22
23
  onChange?: (option: RadioButtonOption, state: boolean) => void;
23
24
  };
24
- export type RadioButtonProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof RadioButtonBaseProps> & RadioButtonBaseProps;
25
+ export type RadioButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof RadioButtonBaseProps> & RadioButtonBaseProps;
25
26
  export {};
@@ -9,5 +9,5 @@ type SwitchBaseProps = {
9
9
  padding?: number;
10
10
  onChange?: (state: boolean) => void;
11
11
  };
12
- export type SwitchProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof SwitchBaseProps> & SwitchBaseProps;
12
+ export type SwitchProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof SwitchBaseProps> & SwitchBaseProps;
13
13
  export {};
@@ -45,6 +45,8 @@ export interface TabOptionProps {
45
45
  tabWidth?: 'min-content' | 'distribute' | number;
46
46
  underline?: boolean;
47
47
  onClick?: (value: number) => void;
48
+ onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>, value: number) => void;
48
49
  onToolTip?: (tip: ToolTip | null) => void;
50
+ buttonRef?: (element: HTMLButtonElement | null) => void;
49
51
  }
50
52
  export {};
@@ -65,7 +65,7 @@ export { Chip } from './components/Chip';
65
65
  export type { ChipProps } from './components/Chip';
66
66
  export { FileIcon, FileIconNames } from './components/FileIcon';
67
67
  export type { FileIconProps } from './components/FileIcon/_types';
68
- export { Icon, IconNames } from './components/Icon';
68
+ export { Icon, SliceIcons } from './components/Icon';
69
69
  export type { IconProps } from './components/Icon/_types';
70
70
  export { ButtonBar } from './components/ButtonBar';
71
71
  export type { BarButton, ButtonBarProps } from './components/ButtonBar/_types';
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Create a tint value from a hex color
2
+ * Lighten or darken a hex color by mixing it toward white or black.
3
3
  */
4
4
  export declare const tintFromColor: (hex: string, percent: number) => string;
5
5
  /**
6
- * Adds the desired opacity level to a hex or RGB color string
6
+ * Convert a hex or RGB color into an RGBA string with the requested opacity.
7
7
  */
8
8
  export declare const addOpacity: (color: string, opacity: number) => string;
@@ -4,7 +4,6 @@ export interface DebouncedFunction<T extends (...args: any[]) => any> {
4
4
  flush: () => void;
5
5
  }
6
6
  /**
7
- * General debounce utility with delay setting and cancel/flush methods
8
- * to clear a "debounce" or immediately "execute" the debounced function
7
+ * Delay a function call until activity stops, with cancel and flush helpers.
9
8
  */
10
9
  export declare function debounce<T extends (...args: any[]) => any>(func: T, delay: number): DebouncedFunction<T>;
@@ -1,9 +1,15 @@
1
+ /**
2
+ * Split a file name into its display name and extension.
3
+ */
1
4
  export declare function nameAndExtension(fileName: string): {
2
5
  name: string;
3
6
  ext: string;
4
7
  };
8
+ /**
9
+ * Map a file extension to the corresponding file icon name.
10
+ */
5
11
  export declare function fileIconName(extension: string): "other" | "text" | "sheet" | "image" | "video" | "audio" | "pdf" | "code" | "md" | "preso" | "clipboard";
6
12
  /**
7
- * Create a text file from clipboard content placing a clipboard file extension
13
+ * Create a clipboard-text file with a guaranteed `.clipboard` extension.
8
14
  */
9
15
  export declare function clipboardTextToFile(content: string, fileName?: string): File;
@@ -1,53 +1,61 @@
1
1
  import type React from 'react';
2
+ /**
3
+ * Convert a numeric or string size into a CSS-ready size value.
4
+ */
2
5
  export declare function setSizeStyle(size: string | number | undefined): string;
3
6
  /**
4
- * Clean up string with html
7
+ * Remove scripts, invisible characters, and optional HTML tags from a string.
5
8
  */
6
9
  export declare function cleanString(input: string, removeInvisible?: boolean, removeHtml?: boolean): string;
7
10
  /**
8
- * Check set theme
11
+ * Check whether the active document theme is currently dark.
9
12
  */
10
13
  export declare function isDarkMode(): boolean;
11
14
  /**
12
- * Debug component rendering
13
- * Code removed when built / deployed
15
+ * Log mount, unmount, and prop-change reasons for debug render tracking.
14
16
  */
15
17
  export declare function debug(previous: any, updated: any, name?: string): {
16
18
  props: any;
17
19
  mount: boolean;
18
20
  unmount: boolean;
19
21
  } | undefined;
22
+ /**
23
+ * Build a readable list of prop changes between two prop snapshots.
24
+ */
20
25
  export declare function createPropChangeArray(props: any, updated: any): string[];
26
+ /**
27
+ * Capture props and lifecycle flags for the render debug helpers.
28
+ */
21
29
  export declare function setProps(props: any, mount?: boolean, unmount?: boolean): {
22
30
  props: any;
23
31
  mount: boolean;
24
32
  unmount: boolean;
25
33
  } | undefined;
26
34
  /**
27
- * convert hex to rgb
35
+ * Convert a hex color into an RGB string literal.
28
36
  */
29
37
  export declare const hexToRgb: (hex: string | undefined) => string | undefined;
30
38
  /**
31
- * Utility to accessibility - mimics click event with designated keys event
39
+ * Trigger a click-like callback when one of the configured keys is pressed.
32
40
  */
33
41
  export declare function accessibleKeyDown(e: React.KeyboardEvent<any>, clickFunction: () => void, keys?: string[]): void;
34
42
  /**
35
- * Get the pointer position from a DOM touch or mouse event
43
+ * Read the horizontal pointer position from a mouse or touch event.
36
44
  */
37
45
  export declare function pointerPosition(e: MouseEvent | TouchEvent): number;
38
46
  /**
39
- * Filter and trim class name array
47
+ * Remove empty class names and join the remainder into one class string.
40
48
  */
41
49
  export declare function filterClasses(classNames: string[]): string;
42
50
  /**
43
- * Takes a style string or number and returns a valid CSS style string
51
+ * Normalize a style value or fallback into a CSS-ready string.
44
52
  */
45
53
  export declare function setStyle(value: string | number | undefined, defaultVal?: number | string | undefined): string;
46
54
  /**
47
- * Copy to clipboard
55
+ * Copy text to the clipboard using a temporary hidden textarea.
48
56
  */
49
57
  export declare const copyToClipboard: (rawContent: string) => Promise<boolean>;
50
58
  /**
51
- * Get normalized percent value from number or string
59
+ * Convert numeric or string percentage input into a normalized number.
52
60
  */
53
61
  export declare function normalizedPercent(value: number | string): number;
@@ -1,4 +1,5 @@
1
- export { copyToClipboard } from './functions/misc';
2
- export { tintFromColor, addOpacity } from './functions/colors';
1
+ export { copyToClipboard, hexToRgb } from './functions/misc';
2
+ export { debounce } from './functions/debounce';
3
+ export * from './functions/colors';
3
4
  export { SSEConnection, WSConnection } from './objects';
4
5
  export type { SSECustomEvent, SSEConnectionCloseOption, SSEConnectionOptions, SSEEventMap, SSEUnifiedBuiltInMessage, SSEUnifiedCustomMessage, SSEUnifiedMessage, UnifiedMessageEvent, WSConnectionOptions, } from './objects';
@@ -96,6 +96,9 @@ interface SSEConnectionStandardOptions<TMessage = unknown, TCustomEvents extends
96
96
  * callback signature is valid.
97
97
  */
98
98
  export type SSEConnectionOptions<TMessage = unknown, TCustomEvents extends SSEEventMap = Record<string, never>> = SSEConnectionStandardOptions<TMessage, TCustomEvents> | SSEConnectionUnifiedOptions<TMessage, TCustomEvents>;
99
+ /**
100
+ * Manage an EventSource connection with optional unified callbacks and typed custom events.
101
+ */
99
102
  export declare class SSEConnection<TMessage = unknown, TCustomEvents extends SSEEventMap = Record<string, never>> {
100
103
  private readonly url;
101
104
  private readonly options;
@@ -117,7 +120,7 @@ export declare class SSEConnection<TMessage = unknown, TCustomEvents extends SSE
117
120
  */
118
121
  get connection(): EventSource | null;
119
122
  /**
120
- * Create an SEE connection instance
123
+ * Create the EventSource connection and attach its initial listeners.
121
124
  */
122
125
  constructor(options?: SSEConnectionOptions<TMessage, TCustomEvents>);
123
126
  /**
@@ -125,37 +128,55 @@ export declare class SSEConnection<TMessage = unknown, TCustomEvents extends SSE
125
128
  */
126
129
  private parseEventData;
127
130
  /**
128
- * Attach default SEE events
131
+ * Attach the default EventSource listeners for message, error, and open events.
129
132
  */
130
133
  private attachDefaultEventListeners;
134
+ /**
135
+ * Emit parsed message data when standard callback mode is enabled.
136
+ */
131
137
  private emitParsedMessage;
138
+ /**
139
+ * Emit a unified message object when unified callback mode is enabled.
140
+ */
132
141
  private emitUnifiedMessage;
142
+ /**
143
+ * Emit the close callback and unified close event.
144
+ */
133
145
  private emitCloseEvent;
146
+ /**
147
+ * Close the connection in response to an SSE-level close condition.
148
+ */
134
149
  private closeFromConnectionEvent;
150
+ /**
151
+ * Check whether an incoming message should close the connection.
152
+ */
135
153
  private shouldCloseFromMessage;
154
+ /**
155
+ * Emit one custom event through unified callback mode.
156
+ */
136
157
  private emitUnifiedCustomMessage;
137
158
  /**
138
- * Attach custom event listeners to the SSE connection
159
+ * Attach one typed custom event listener to the SSE connection.
139
160
  */
140
161
  private attachCustomEventListener;
141
162
  /**
142
- * Attach custom event listeners to the SSE connection
163
+ * Attach all configured custom event listeners to the SSE connection.
143
164
  */
144
165
  private attachCustomEventListeners;
145
166
  /**
146
- * Clean up listeners
167
+ * Detach every default and custom listener from the current EventSource.
147
168
  */
148
169
  private detachAllEventListeners;
149
170
  /**
150
- * One message received
171
+ * Parse and emit the default `message` event payload.
151
172
  */
152
173
  onMessage: (event: MessageEvent) => void;
153
174
  /**
154
- * On error event
175
+ * Forward EventSource errors through the configured callbacks.
155
176
  */
156
177
  onError: (event: Event) => void;
157
178
  /**
158
- * On open event
179
+ * Forward EventSource open events through the configured callbacks.
159
180
  */
160
181
  onOpen: (event: Event) => void;
161
182
  /**