@fpkit/acss 0.4.19 → 0.5.2

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 (119) hide show
  1. package/libs/chunk-TBM2QIVT.js +8 -0
  2. package/libs/chunk-TBM2QIVT.js.map +1 -0
  3. package/libs/chunk-VAH6X2DZ.cjs +31 -0
  4. package/libs/chunk-VAH6X2DZ.cjs.map +1 -0
  5. package/libs/components/badge/badge.css +1 -1
  6. package/libs/components/badge/badge.css.map +1 -1
  7. package/libs/components/badge/badge.min.css +2 -2
  8. package/libs/components/buttons/button.css +1 -1
  9. package/libs/components/buttons/button.css.map +1 -1
  10. package/libs/components/buttons/button.min.css +2 -2
  11. package/libs/components/cards/card.css +1 -1
  12. package/libs/components/cards/card.css.map +1 -1
  13. package/libs/components/cards/card.min.css +2 -2
  14. package/libs/components/details/details.css +1 -1
  15. package/libs/components/details/details.css.map +1 -1
  16. package/libs/components/details/details.min.css +2 -2
  17. package/libs/components/icons/icon.css +1 -1
  18. package/libs/components/icons/icon.css.map +1 -1
  19. package/libs/components/icons/icon.min.css +2 -2
  20. package/libs/{icons-1f5afc0c.d.ts → icons-2f29127c.d.ts} +32 -1
  21. package/libs/icons.cjs +2 -2
  22. package/libs/icons.d.cts +1 -1
  23. package/libs/icons.d.ts +1 -1
  24. package/libs/icons.js +1 -1
  25. package/libs/index.cjs +37 -37
  26. package/libs/index.cjs.map +1 -1
  27. package/libs/index.css +1 -1
  28. package/libs/index.css.map +1 -1
  29. package/libs/index.d.cts +8 -5
  30. package/libs/index.d.ts +8 -5
  31. package/libs/index.js +6 -6
  32. package/libs/index.js.map +1 -1
  33. package/package.json +3 -2
  34. package/src/components/badge/badge.scss +1 -0
  35. package/src/components/badge/badge.stories.tsx +3 -3
  36. package/src/components/breadcrumbs/breadcrumb.stories.tsx +26 -10
  37. package/src/components/breadcrumbs/breadcrumb.tsx +48 -40
  38. package/src/components/buttons/button.scss +3 -4
  39. package/src/components/buttons/button.stories.tsx +50 -28
  40. package/src/components/buttons/button.test.tsx +1 -1
  41. package/src/components/buttons/button.tsx +31 -4
  42. package/src/components/cards/card.scss +5 -3
  43. package/src/components/cards/card.stories.tsx +4 -4
  44. package/src/components/cards/card.tsx +0 -1
  45. package/src/components/details/details.scss +12 -3
  46. package/src/components/details/details.stories.tsx +20 -4
  47. package/src/components/details/details.tsx +2 -1
  48. package/src/components/form/form.stories.tsx +2 -2
  49. package/src/components/form/input.stories.tsx +2 -2
  50. package/src/components/form/select.stories.tsx +2 -2
  51. package/src/components/form/select.tsx +23 -33
  52. package/src/components/fp.test.tsx +1 -1
  53. package/src/components/heading/heading.stories.tsx +2 -2
  54. package/src/components/heading/heading.tsx +2 -2
  55. package/src/components/icons/components/svg.tsx +1 -0
  56. package/src/components/icons/icon.scss +2 -0
  57. package/src/components/icons/icon.stories.tsx +23 -3
  58. package/src/components/icons/icon.tsx +11 -0
  59. package/src/components/icons/types.ts +1 -1
  60. package/src/components/images/figure.stories.tsx +3 -6
  61. package/src/components/images/img.stories.tsx +3 -3
  62. package/src/components/layout/footer.stories.tsx +2 -2
  63. package/src/components/layout/landmarks.stories.tsx +2 -2
  64. package/src/components/layout/main.stories.tsx +2 -2
  65. package/src/components/link/link.stories.tsx +2 -2
  66. package/src/components/list/list.stories.tsx +7 -2
  67. package/src/components/nav/nav.stories.tsx +4 -3
  68. package/src/components/popover/popover.stories.tsx +2 -2
  69. package/src/components/progress/progress.stories.tsx +2 -2
  70. package/src/components/tag/tag.stories.tsx +3 -3
  71. package/src/components/text/text.stories.tsx +6 -6
  72. package/src/patterns/page/page-header.stories.tsx +2 -2
  73. package/src/sass/_globals.scss +9 -7
  74. package/src/styles/badge/badge.css +1 -0
  75. package/src/styles/badge/badge.css.map +1 -1
  76. package/src/styles/buttons/button.css +3 -3
  77. package/src/styles/buttons/button.css.map +1 -1
  78. package/src/styles/cards/card.css +2 -3
  79. package/src/styles/cards/card.css.map +1 -1
  80. package/src/styles/details/details.css +11 -3
  81. package/src/styles/details/details.css.map +1 -1
  82. package/src/styles/icons/icon.css +2 -0
  83. package/src/styles/icons/icon.css.map +1 -1
  84. package/src/styles/index.css +26 -16
  85. package/src/styles/index.css.map +1 -1
  86. package/LICENSE +0 -21
  87. package/dist/chunk-77CZU5XZ.cjs +0 -9
  88. package/dist/chunk-77CZU5XZ.cjs.map +0 -1
  89. package/dist/chunk-D43FJIRQ.cjs +0 -31
  90. package/dist/chunk-D43FJIRQ.cjs.map +0 -1
  91. package/dist/chunk-GJWMCDFS.js +0 -9
  92. package/dist/chunk-GJWMCDFS.js.map +0 -1
  93. package/dist/chunk-PCDUGD3C.js +0 -5
  94. package/dist/chunk-PCDUGD3C.js.map +0 -1
  95. package/dist/hooks.cjs +0 -10
  96. package/dist/hooks.cjs.map +0 -1
  97. package/dist/hooks.d.cts +0 -32
  98. package/dist/hooks.d.ts +0 -32
  99. package/dist/hooks.js +0 -8
  100. package/dist/hooks.js.map +0 -1
  101. package/dist/icon-e6044c73.d.ts +0 -227
  102. package/dist/icons.cjs +0 -73
  103. package/dist/icons.cjs.map +0 -1
  104. package/dist/icons.d.cts +0 -252
  105. package/dist/icons.d.ts +0 -252
  106. package/dist/icons.js +0 -4
  107. package/dist/icons.js.map +0 -1
  108. package/dist/index.cjs +0 -59
  109. package/dist/index.cjs.map +0 -1
  110. package/dist/index.d.cts +0 -566
  111. package/dist/index.d.ts +0 -566
  112. package/dist/index.js +0 -11
  113. package/dist/index.js.map +0 -1
  114. package/libs/chunk-QHIABQNQ.js +0 -8
  115. package/libs/chunk-QHIABQNQ.js.map +0 -1
  116. package/libs/chunk-ZOHIKF6I.cjs +0 -31
  117. package/libs/chunk-ZOHIKF6I.cjs.map +0 -1
  118. package/src/components/popover/node_modules/.vitest/results.json +0 -1
  119. package/src/hooks/popover/node_modules/.vitest/results.json +0 -1
package/dist/hooks.d.ts DELETED
@@ -1,32 +0,0 @@
1
- type Position = {
2
- /**
3
- * @description This is the top position of the popover.
4
- * @default 0
5
- */
6
- top: number;
7
- /**
8
- * @description This is the left position of the popover.
9
- * @default 0
10
- */
11
- left: number;
12
- };
13
- /**
14
- * @description This is the hook to show/hide the popover.
15
- * @param elementRef - This is the ref of the element on which the popover should be shown.
16
- * @param hoverRef - This is the ref of the element on which the popover should be shown.
17
- * @param spacing - This is the spacing between the element and the popover.
18
- * @example - const { isVisible, popoverPosition, handlePointerEvent, handlePointerLeave } = usePopover(hoverRef, popOverRef, 1)
19
- * @returns - This is the object of the following properties.
20
- * @returns - isVisible - This is the boolean value to show/hide the popover.
21
- * @returns - popoverPosition - This is the position of the popover.
22
- * @returns - handlePointerEvent - This is the function to handle the pointer event.
23
- * @returns - handlePointerLeave - This is the function to handle the pointer leave event.
24
- */
25
- declare const usePopover: (elementRef: React.RefObject<HTMLElement>, hoverRef: React.RefObject<HTMLElement>, spacing?: number) => {
26
- isVisible: boolean;
27
- popoverPosition: Position;
28
- handlePointerEvent: (event: React.MouseEvent<HTMLButtonElement>) => void;
29
- handlePointerLeave: () => void;
30
- };
31
-
32
- export { usePopover };
package/dist/hooks.js DELETED
@@ -1,8 +0,0 @@
1
- import './chunk-PCDUGD3C.js';
2
- import { useState } from 'react';
3
-
4
- const L=(e,P,n=1)=>{const[h,s]=useState(!1); const [d,m]=useState({top:0,left:0});return {isVisible:h,popoverPosition:d,handlePointerEvent:r=>{let i,c,p;r==null||r.stopPropagation();const t=((i=e.current)==null?void 0:i.offsetHeight)||40;if(e.current){const l=e.current.getBoundingClientRect(); const {scrollY:o,scrollX:v,innerHeight:a}=window; const u=l.bottom+o+n; const b=l.left+v; const H=u+t; const g=(p=(c=P.current)==null?void 0:c.offsetHeight)!=null?p:t; const E=H>o+a?Math.max(o+a-g-t-n,o)-t-n:u;m({top:E,left:b}),s(!0);}},handlePointerLeave:()=>{s(!1);}}};
5
-
6
- export { L as usePopover };
7
- // # sourceMappingURL=out.js.map
8
- // # sourceMappingURL=hooks.js.map
package/dist/hooks.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/hooks/popover/use-popover.tsx"],"names":["useState","usePopover","elementRef","hoverRef","spacing","isVisible","setIsVisible","popoverPosition","setPopoverPosition","event","_a","_b","_c","height","rect","scrollY","scrollX","innerHeight","popoverTop","popoverLeft","popoverBottom","popoverHeight","adjustedTop"],"mappings":"4BAAA,OAAS,YAAAA,MAAgB,QA2BlB,IAAMC,EAAa,CACxBC,EACAC,EACAC,EAAU,IACP,CACH,GAAM,CAACC,EAAWC,CAAY,EAAIN,EAAS,EAAK,EAC1C,CAACO,EAAiBC,CAAkB,EAAIR,EAAmB,CAC/D,IAAK,EACL,KAAM,CACR,CAAC,EAoCD,MAAO,CACL,UAAAK,EACA,gBAAAE,EACA,mBArC0BE,GAA+C,CAtC7E,IAAAC,EAAAC,EAAAC,EAuCIH,GAAA,MAAAA,EAAO,kBACP,IAAMI,IAASH,EAAAR,EAAW,UAAX,YAAAQ,EAAoB,eAAgB,GACnD,GAAIR,EAAW,QAAS,CACtB,IAAMY,EAAOZ,EAAW,QAAQ,sBAAsB,EAChD,CAAE,QAAAa,EAAS,QAAAC,EAAS,YAAAC,CAAY,EAAI,OAEpCC,EAAaJ,EAAK,OAASC,EAAUX,EACrCe,EAAcL,EAAK,KAAOE,EAC1BI,EAAgBF,EAAaL,EAC7BQ,GAAgBT,GAAAD,EAAAR,EAAS,UAAT,YAAAQ,EAAkB,eAAlB,KAAAC,EAAkCC,EAElDS,EACJF,EAAgBL,EAAUE,EACtB,KAAK,IACHF,EAAUE,EAAcI,EAAgBR,EAAST,EACjDW,CACF,EACAF,EACAT,EACAc,EAENV,EAAmB,CACjB,IAAKc,EACL,KAAMH,CACR,CAAC,EACDb,EAAa,EAAI,CACnB,CACF,EAUE,mBARyB,IAAM,CAC/BA,EAAa,EAAK,CACpB,CAOA,CACF","sourcesContent":["import { useState } from 'react'\n\ntype Position = {\n /**\n * @description This is the top position of the popover.\n * @default 0\n */\n top: number\n /**\n * @description This is the left position of the popover.\n * @default 0\n */\n left: number\n}\n\n/**\n * @description This is the hook to show/hide the popover.\n * @param elementRef - This is the ref of the element on which the popover should be shown.\n * @param hoverRef - This is the ref of the element on which the popover should be shown.\n * @param spacing - This is the spacing between the element and the popover.\n * @example - const { isVisible, popoverPosition, handlePointerEvent, handlePointerLeave } = usePopover(hoverRef, popOverRef, 1)\n * @returns - This is the object of the following properties.\n * @returns - isVisible - This is the boolean value to show/hide the popover.\n * @returns - popoverPosition - This is the position of the popover.\n * @returns - handlePointerEvent - This is the function to handle the pointer event.\n * @returns - handlePointerLeave - This is the function to handle the pointer leave event.\n */\nexport const usePopover = (\n elementRef: React.RefObject<HTMLElement>,\n hoverRef: React.RefObject<HTMLElement>,\n spacing = 1,\n) => {\n const [isVisible, setIsVisible] = useState(false)\n const [popoverPosition, setPopoverPosition] = useState<Position>({\n top: 0,\n left: 0,\n })\n\n const handlePointerEvent = (event: React.MouseEvent<HTMLButtonElement>) => {\n event?.stopPropagation()\n const height = elementRef.current?.offsetHeight || 40\n if (elementRef.current) {\n const rect = elementRef.current.getBoundingClientRect()\n const { scrollY, scrollX, innerHeight } = window\n\n const popoverTop = rect.bottom + scrollY + spacing\n const popoverLeft = rect.left + scrollX\n const popoverBottom = popoverTop + height // Adjust the popover height as needed\n const popoverHeight = hoverRef.current?.offsetHeight ?? height // Adjust the popover height as needed\n\n const adjustedTop =\n popoverBottom > scrollY + innerHeight\n ? Math.max(\n scrollY + innerHeight - popoverHeight - height - spacing,\n scrollY,\n ) -\n height -\n spacing\n : popoverTop\n\n setPopoverPosition({\n top: adjustedTop,\n left: popoverLeft,\n })\n setIsVisible(true)\n }\n }\n\n const handlePointerLeave = () => {\n setIsVisible(false)\n }\n\n return {\n isVisible,\n popoverPosition,\n handlePointerEvent,\n handlePointerLeave,\n }\n}\n\nexport default usePopover\n"]}
@@ -1,227 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
-
4
- interface ComponentProps {
5
- /**
6
- * The default child content/component to render.
7
- */
8
- children?: ReactNode;
9
- /**
10
- * Use default component styles
11
- */
12
- renderStyles?: boolean;
13
- /**
14
- * Component id attribute
15
- */
16
- id?: string;
17
- /**
18
- * Styles object
19
- */
20
- styles?: {};
21
- /**
22
- * Default styles object
23
- */
24
- defaultStyles?: {};
25
- /**
26
- * Component class attribute
27
- */
28
- classes?: string;
29
- /**
30
- * Style value for [data-style] attribute
31
- */
32
- dataStyle?: string;
33
- }
34
-
35
- interface IconProps$1 extends Partial<ComponentProps> {
36
- fill?: string;
37
- size?: number;
38
- strokeColor?: string;
39
- strokeWidth?: string;
40
- role?: string;
41
- alt?: string;
42
- width?: number;
43
- height?: number;
44
- }
45
-
46
- declare function Star({ size, fill, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
47
- declare namespace Star {
48
- var displayName: string;
49
- }
50
-
51
- interface IconProps extends Partial<ComponentProps> {
52
- fill?: string;
53
- size?: string;
54
- viewBox?: string;
55
- name?: string;
56
- }
57
- declare const defaultStyles: {
58
- display: string;
59
- direction: string;
60
- gap: string;
61
- placeItems: string;
62
- width: string;
63
- };
64
- /**
65
- * Icon component wraps svg in a div.
66
- * @param {IconProps} props - The props object for the Icon component.
67
- * @param {React.ReactNode} props.children - The children of the Icon component.
68
- * @param {Object} props.styles - The styles object for the Icon component.
69
- * @returns {JSX.Element} - The Icon component.
70
- */
71
- declare const Icon: {
72
- ({ children, styles, ...props }: IconProps): react_jsx_runtime.JSX.Element;
73
- Add: {
74
- ({ fill, size, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): JSX.Element;
75
- styles: {
76
- fill: string;
77
- display: string;
78
- alignItems: string;
79
- width: string;
80
- };
81
- displayName: string;
82
- };
83
- ArrowDown: {
84
- ({ fill, strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
85
- styles: {
86
- display: string;
87
- alignItems: string;
88
- width: string;
89
- };
90
- displayName: string;
91
- };
92
- ArrowLeft: {
93
- ({ strokeColor, fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
94
- styles: {
95
- display: string;
96
- alignItems: string;
97
- width: string;
98
- };
99
- displayName: string;
100
- };
101
- ArrowRight: {
102
- ({ size, fill, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
103
- displayName: string;
104
- };
105
- ArrowUp: {
106
- ({ fill, strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
107
- displayName: string;
108
- style: {
109
- fill: string;
110
- stroke: string;
111
- display: string;
112
- alignItems: string;
113
- width: string;
114
- };
115
- };
116
- Chat: {
117
- ({ size, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): JSX.Element;
118
- styles: {
119
- display: string;
120
- alignItems: string;
121
- width: string;
122
- };
123
- displayName: string;
124
- };
125
- Code: {
126
- ({ strokeColor, fill, size, styles, role, alt, ...props }?: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
127
- styles: {
128
- fill: string;
129
- stroke: string;
130
- display: string;
131
- alignItems: string;
132
- width: string;
133
- };
134
- };
135
- Copy: {
136
- ({ size, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): JSX.Element;
137
- displayName: string;
138
- styles: {
139
- stroke: string;
140
- display: string;
141
- alignItems: string;
142
- width: string;
143
- };
144
- };
145
- displayName: string;
146
- Home: {
147
- ({ strokeColor, fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
148
- displayName: string;
149
- styles: {
150
- fill: string;
151
- stroke: string;
152
- display: string;
153
- alignItems: string;
154
- width: string;
155
- };
156
- };
157
- Left: {
158
- ({ fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
159
- displayName: string;
160
- styles: {
161
- fill: string;
162
- display: string;
163
- alignItems: string;
164
- width: string;
165
- };
166
- };
167
- Minus: {
168
- ({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
169
- displayName: string;
170
- styles: {
171
- fill: string;
172
- };
173
- };
174
- Remove: {
175
- ({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
176
- displayName: string;
177
- styles: {
178
- fill: string;
179
- };
180
- };
181
- Right: {
182
- ({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
183
- displayName: string;
184
- styles: {
185
- fill: string;
186
- };
187
- };
188
- Star: typeof Star;
189
- styles: {
190
- display: string;
191
- direction: string;
192
- gap: string;
193
- placeItems: string;
194
- width: string;
195
- };
196
- Up: {
197
- ({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
198
- displayName: string;
199
- styles: {
200
- display: string;
201
- alignItems: string;
202
- width: string;
203
- };
204
- };
205
- Down: {
206
- ({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
207
- displayName: string;
208
- styles: {
209
- display: string;
210
- alignItems: string;
211
- width: string;
212
- };
213
- };
214
- User: {
215
- ({ size, fill, strokeColor, styles, alt, role, ...props }: Pick<IconProps$1, "role" | "fill" | "alt" | "size" | "styles" | "strokeColor">): react_jsx_runtime.JSX.Element;
216
- styles: {
217
- fill: string;
218
- stroke: string;
219
- display: string;
220
- alignItems: string;
221
- width: string;
222
- };
223
- displayName: string;
224
- };
225
- };
226
-
227
- export { ComponentProps as C, Icon as I, IconProps$1 as a, IconProps as b, defaultStyles as d };
package/dist/icons.cjs DELETED
@@ -1,73 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkD43FJIRQ_cjs = require('./chunk-D43FJIRQ.cjs');
4
- require('./chunk-77CZU5XZ.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, 'Add', {
9
- enumerable: true,
10
- get: function () { return chunkD43FJIRQ_cjs.d; }
11
- });
12
- Object.defineProperty(exports, 'ArrowDown', {
13
- enumerable: true,
14
- get: function () { return chunkD43FJIRQ_cjs.g; }
15
- });
16
- Object.defineProperty(exports, 'ArrowLeft', {
17
- enumerable: true,
18
- get: function () { return chunkD43FJIRQ_cjs.e; }
19
- });
20
- Object.defineProperty(exports, 'ArrowRight', {
21
- enumerable: true,
22
- get: function () { return chunkD43FJIRQ_cjs.i; }
23
- });
24
- Object.defineProperty(exports, 'ArrowUp', {
25
- enumerable: true,
26
- get: function () { return chunkD43FJIRQ_cjs.h; }
27
- });
28
- Object.defineProperty(exports, 'Chat', {
29
- enumerable: true,
30
- get: function () { return chunkD43FJIRQ_cjs.f; }
31
- });
32
- Object.defineProperty(exports, 'Code', {
33
- enumerable: true,
34
- get: function () { return chunkD43FJIRQ_cjs.b; }
35
- });
36
- Object.defineProperty(exports, 'Copy', {
37
- enumerable: true,
38
- get: function () { return chunkD43FJIRQ_cjs.o; }
39
- });
40
- Object.defineProperty(exports, 'Home', {
41
- enumerable: true,
42
- get: function () { return chunkD43FJIRQ_cjs.c; }
43
- });
44
- Object.defineProperty(exports, 'Icon', {
45
- enumerable: true,
46
- get: function () { return chunkD43FJIRQ_cjs.q; }
47
- });
48
- Object.defineProperty(exports, 'Left', {
49
- enumerable: true,
50
- get: function () { return chunkD43FJIRQ_cjs.l; }
51
- });
52
- Object.defineProperty(exports, 'Minus', {
53
- enumerable: true,
54
- get: function () { return chunkD43FJIRQ_cjs.m; }
55
- });
56
- Object.defineProperty(exports, 'Remove', {
57
- enumerable: true,
58
- get: function () { return chunkD43FJIRQ_cjs.n; }
59
- });
60
- Object.defineProperty(exports, 'Right', {
61
- enumerable: true,
62
- get: function () { return chunkD43FJIRQ_cjs.k; }
63
- });
64
- Object.defineProperty(exports, 'User', {
65
- enumerable: true,
66
- get: function () { return chunkD43FJIRQ_cjs.j; }
67
- });
68
- Object.defineProperty(exports, 'defaultStyles', {
69
- enumerable: true,
70
- get: function () { return chunkD43FJIRQ_cjs.p; }
71
- });
72
- //# sourceMappingURL=out.js.map
73
- //# sourceMappingURL=icons.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
package/dist/icons.d.cts DELETED
@@ -1,252 +0,0 @@
1
- import { a as IconProps } from './icon-e6044c73.js';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import 'react';
4
- export { I as Icon, b as IconProps, d as defaultStyles } from './icon-e6044c73.js';
5
-
6
- /**
7
- * Renders a code icon.
8
- *
9
- * @param {string} strokeColor - The color of the icon's stroke.
10
- * @param {string} fill - The color of the icon's fill.
11
- * @param {string} size - The size of the icon.
12
- * @param {string} viewBox - The viewBox of the icon.
13
- * @param {React.CSSProperties} styles - The default styles of the icon.
14
- * @param {IconProps} props - Additional props to apply to the icon.
15
- * @returns {JSX.Element} - A React component that renders an SVG icon.
16
- */
17
- declare const Code: {
18
- ({ strokeColor, fill, size, styles, role, alt, ...props }?: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
19
- styles: {
20
- fill: string;
21
- stroke: string;
22
- display: string;
23
- alignItems: string;
24
- width: string;
25
- };
26
- };
27
-
28
- /**
29
- * Renders a home icon.
30
- *
31
- * @param {string} strokeColor - The color of the icon's stroke.
32
- * @param {string} fill - The color of the icon's fill.
33
- * @param {string} size - The size of the icon.
34
- * @param {string} viewBox - The viewBox of the icon.
35
- * @param {string} name - The name of the icon.
36
- * @param {Object} styles - The styles of the icon.
37
- * @param {Object} props - The props of the icon.
38
- * @returns {JSX.Element} - A home icon.
39
- */
40
- declare const Home: {
41
- ({ strokeColor, fill, size, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
42
- displayName: string;
43
- styles: {
44
- fill: string;
45
- stroke: string;
46
- display: string;
47
- alignItems: string;
48
- width: string;
49
- };
50
- };
51
-
52
- /**
53
- * Add Icon component
54
- * @param {string} fill - Icon fill color (default: 'currentColor')
55
- * @param {string} size - Icon size (default: '24')
56
- * @param {IconProps} props - Other icon properties
57
- * @returns {JSX.Element} - Rendered component
58
- */
59
- declare const Add: {
60
- ({ fill, size, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): JSX.Element;
61
- styles: {
62
- fill: string;
63
- display: string;
64
- alignItems: string;
65
- width: string;
66
- };
67
- displayName: string;
68
- };
69
-
70
- /**
71
- * Renders an arrow pointing to the left.
72
- *
73
- * @param {string} strokeColor - The color of the arrow's stroke.
74
- * @param {string} fill - The fill color of the arrow.
75
- * @param {string} size - The size of the arrow.
76
- * @param {object} styles - The styles to apply to the arrow.
77
- * @param {object} props - The additional props to pass to the SVG element.
78
- * @returns {JSX.Element} - A React component that renders an arrow pointing to the left.
79
- */
80
- declare const ArrowLeft: {
81
- ({ strokeColor, fill, size, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
82
- styles: {
83
- display: string;
84
- alignItems: string;
85
- width: string;
86
- };
87
- displayName: string;
88
- };
89
-
90
- /**
91
- * @param {string} size - The width and height of the icon in pixels. Defaults to 24.
92
- * @param {string} strokeColor - The color of the icon stroke. Defaults to 'currentcolor'.
93
- * @param {React.CSSProperties} styles - Additional CSS styles to apply to the icon.
94
- * @param {IconProps} props - Additional props to pass to the SVG element.
95
- * @returns {JSX.Element} - A chat icon component that displays a speech bubble with lines representing text.
96
- */
97
- declare const Chat: {
98
- ({ size, strokeColor, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): JSX.Element;
99
- styles: {
100
- display: string;
101
- alignItems: string;
102
- width: string;
103
- };
104
- displayName: string;
105
- };
106
-
107
- /**
108
- * ArrowDown icon component
109
- * @param fill - Icon fill color
110
- * @param strokeColor - Icon stroke color
111
- * @param styles - Icon styles
112
- * @param size - Icon size
113
- */
114
- declare const ArrowDown: {
115
- ({ fill, strokeColor, styles, size, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
116
- styles: {
117
- display: string;
118
- alignItems: string;
119
- width: string;
120
- };
121
- displayName: string;
122
- };
123
-
124
- /**
125
- * ArrowUp icon component
126
- * @param fill - Icon fill color
127
- * @param strokeColor - Icon stroke color
128
- * @param styles - Icon styles
129
- * @param size - Icon size
130
- */
131
- declare const ArrowUp: {
132
- ({ fill, strokeColor, styles, size, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
133
- displayName: string;
134
- style: {
135
- fill: string;
136
- stroke: string;
137
- display: string;
138
- alignItems: string;
139
- width: string;
140
- };
141
- };
142
-
143
- declare const ArrowRight: {
144
- ({ size, fill, strokeColor, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
145
- displayName: string;
146
- };
147
-
148
- declare const User: {
149
- ({ size, fill, strokeColor, styles, alt, role, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
150
- styles: {
151
- fill: string;
152
- stroke: string;
153
- display: string;
154
- alignItems: string;
155
- width: string;
156
- };
157
- displayName: string;
158
- };
159
-
160
- /**
161
- * Renders a right arrow icon.
162
- *
163
- * @param {string} size - The size of the icon.
164
- * @param {string} fill - The fill color of the icon.
165
- * @param {React.CSSProperties} styles - The styles to apply to the icon.
166
- * @param {IconProps} props - The props to pass down to the icon.
167
- * @returns {JSX.Element} - A right arrow icon.
168
- */
169
- declare const Right: {
170
- ({ size, fill, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
171
- displayName: string;
172
- styles: {
173
- fill: string;
174
- };
175
- };
176
-
177
- /**
178
- * Left arrow icon
179
- * @param {string} fill - Icon fill color (default: 'currentColor')
180
- * @param {string} size - Icon size (default: '24')
181
- * @param {React.CSSProperties} styles - Icon styles (default: {})
182
- * @param {IconProps} props - Any other valid props for an SVG element
183
- * @returns {JSX.Element} - Rendered icon component
184
- */
185
- declare const Left: {
186
- ({ fill, size, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
187
- displayName: string;
188
- styles: {
189
- fill: string;
190
- display: string;
191
- alignItems: string;
192
- width: string;
193
- };
194
- };
195
-
196
- /**
197
- * Minus icon component
198
- * @param {string} size - Icon size (default: 24)
199
- * @param {string} fill - Icon fill color (default: 'currentColor')
200
- * @param {object} styles - Inline styles for the SVG element
201
- * @param {object} props - Any other SVG attributes
202
- * @returns {JSX.Element} - Rendered Minus icon component
203
- */
204
- declare const Minus: {
205
- ({ size, fill, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
206
- displayName: string;
207
- styles: {
208
- fill: string;
209
- };
210
- };
211
-
212
- /**
213
- * Remove icon component
214
- * @param {string} size - The size of the icon
215
- * @param {string} fill - The fill color of the icon
216
- * @param {object} styles - The styles to apply to the icon
217
- * @param {object} props - The additional props to pass to the icon
218
- * @returns {JSX.Element} - The Remove icon component
219
- */
220
- declare const Remove: {
221
- ({ size, fill, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): react_jsx_runtime.JSX.Element;
222
- displayName: string;
223
- styles: {
224
- fill: string;
225
- };
226
- };
227
-
228
- /**
229
- * Copy icon component
230
- * @param {string} size - The width and height of the icon
231
- * @param {string} strokeColor - The color of the icon stroke
232
- * @param {IconProps} props - The icon component props
233
- * @returns {JSX.Element} - A react JSX element representing the copy icon
234
- */
235
- declare const Copy: {
236
- ({ size, strokeColor, styles, role, alt, ...props }: Pick<IconProps, 'strokeColor' | 'fill' | 'styles' | 'size' | 'role' | 'alt'>): JSX.Element;
237
- displayName: string;
238
- styles: {
239
- stroke: string;
240
- display: string;
241
- alignItems: string;
242
- width: string; /**
243
- * Copy icon component
244
- * @param {string} size - The width and height of the icon
245
- * @param {string} strokeColor - The color of the icon stroke
246
- * @param {IconProps} props - The icon component props
247
- * @returns {JSX.Element} - A react JSX element representing the copy icon
248
- */
249
- };
250
- };
251
-
252
- export { Add, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Chat, Code, Copy, Home, Left, Minus, Remove, Right, User };