fictoan-react 1.11.14 → 2.0.0-alpha.1
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.
- package/README.md +0 -2
- package/dist/Accordion-ZNSXFjKa.js +4647 -0
- package/dist/Accordion-ZNSXFjKa.js.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +4 -3
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +0 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +12 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.d.ts.map +1 -0
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +3 -5
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Element/Element.d.ts.map +1 -1
- package/dist/components/Element/constants.d.ts +8 -5
- package/dist/components/Element/constants.d.ts.map +1 -1
- package/dist/components/Form/Checkbox/Checkbox.d.ts +20 -7
- package/dist/components/Form/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Form/Checkbox/CheckboxAndSwitchGroup.d.ts +25 -10
- package/dist/components/Form/Checkbox/CheckboxAndSwitchGroup.d.ts.map +1 -1
- package/dist/components/Form/Checkbox/Switch.d.ts +20 -8
- package/dist/components/Form/Checkbox/Switch.d.ts.map +1 -1
- package/dist/components/Form/FileUpload/FileUpload.d.ts +23 -4
- package/dist/components/Form/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/Form/Form/Form.d.ts +1 -1
- package/dist/components/Form/Form/Form.d.ts.map +1 -1
- package/dist/components/Form/Form/FormGenerator.d.ts +8 -2
- package/dist/components/Form/Form/FormGenerator.d.ts.map +1 -1
- package/dist/components/Form/FormItem/FormItem.d.ts +11 -2
- package/dist/components/Form/FormItem/FormItem.d.ts.map +1 -1
- package/dist/components/Form/FormItemGroup/FormItemGroup.d.ts.map +1 -1
- package/dist/components/Form/InputField/InputField.d.ts +31 -12
- package/dist/components/Form/InputField/InputField.d.ts.map +1 -1
- package/dist/components/Form/InputLabel/InputLabel.d.ts.map +1 -1
- package/dist/components/Form/ListBox/ListBox.d.ts.map +1 -1
- package/dist/components/Form/ListBox/constants.d.ts +5 -8
- package/dist/components/Form/ListBox/constants.d.ts.map +1 -1
- package/dist/components/Form/RadioButton/RadioButton.d.ts +8 -2
- package/dist/components/Form/RadioButton/RadioButton.d.ts.map +1 -1
- package/dist/components/Form/RadioButton/RadioGroup.d.ts.map +1 -1
- package/dist/components/Form/RadioButton/RadioTabGroup.d.ts +1 -2
- package/dist/components/Form/RadioButton/RadioTabGroup.d.ts.map +1 -1
- package/dist/components/Form/RadioButton/constants.d.ts +18 -5
- package/dist/components/Form/RadioButton/constants.d.ts.map +1 -1
- package/dist/components/Form/Range/Range.d.ts +24 -4
- package/dist/components/Form/Range/Range.d.ts.map +1 -1
- package/dist/components/Form/Range/index.d.ts +1 -1
- package/dist/components/Form/Range/index.d.ts.map +1 -1
- package/dist/components/Form/Select/Select.d.ts.map +1 -1
- package/dist/components/Form/TextArea/TextArea.d.ts +22 -5
- package/dist/components/Form/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/index.d.ts.map +1 -1
- package/dist/components/Meter/Meter.d.ts +0 -2
- package/dist/components/Meter/Meter.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +2 -3
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Notification/NotificationItem/NotificationItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationsWrapper/NotificationsWrapper.d.ts.map +1 -1
- package/dist/components/OptionCard/OptionCard.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Portion/Portion.d.ts.map +1 -1
- package/dist/components/Portion/index.d.ts +1 -0
- package/dist/components/Portion/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +8 -3
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/Row/Row.d.ts +1 -0
- package/dist/components/Row/Row.d.ts.map +1 -1
- package/dist/components/Sidebar/ContentWrapper/ContentWrapper.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarFooter/SidebarFooter.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHeader/SidebarHeader.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarItem/SidebarItem.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarWrapper/SidebarWrapper.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/components/Toast/ToastItem/ToastItem.d.ts.map +1 -1
- package/dist/components/Toast/ToastsWrapper/ToastsWrapper.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +9 -8
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Typography/Heading.d.ts.map +1 -1
- package/dist/components/Typography/Text.d.ts +1 -1
- package/dist/components/Typography/Text.d.ts.map +1 -1
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +75 -77
- package/dist/components/index.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +129 -111
- package/dist/index.js.map +1 -0
- package/dist/scripts/generateColourClasses.d.ts +2 -0
- package/dist/scripts/generateColourClasses.d.ts.map +1 -0
- package/dist/styles/colours.d.ts +7 -0
- package/dist/styles/colours.d.ts.map +1 -0
- package/dist/utils/propSeparation.d.ts +22 -0
- package/dist/utils/propSeparation.d.ts.map +1 -0
- package/package.json +36 -37
- package/dist/Modal-eaK0YswF.js +0 -6089
- package/dist/components/Form/BaseInputComponent/BaseInputComponent.d.ts +0 -8
- package/dist/components/Form/BaseInputComponent/BaseInputComponent.d.ts.map +0 -1
- package/dist/components/Form/BaseInputComponent/constants.d.ts +0 -51
- package/dist/components/Form/BaseInputComponent/constants.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,20 +3,21 @@ export { Accordion, type AccordionProps } from './components/Accordion';
|
|
|
3
3
|
export { Badge, type BadgeProps } from './components/Badge';
|
|
4
4
|
export { Breadcrumbs, type BreadcrumbsProps } from './components/Breadcrumbs';
|
|
5
5
|
export { Button, type ButtonProps } from './components/Button';
|
|
6
|
+
export { ButtonGroup, type ButtonGroupProps } from './components/ButtonGroup';
|
|
6
7
|
export { Callout, type CalloutProps } from './components/Callout';
|
|
7
8
|
export { Card, type CardProps } from './components/Card';
|
|
8
9
|
export { CodeBlock, type CodeBlockProps } from './components/CodeBlock';
|
|
9
10
|
export { Divider, type DividerProps } from './components/Divider';
|
|
10
|
-
export { Drawer, type DrawerProps
|
|
11
|
+
export { Drawer, type DrawerProps } from './components/Drawer';
|
|
11
12
|
export { Element, type ElementProps, Div, Article, Aside, Body, Footer, Header, Main, Nav, Section, Span, Hyperlink } from './components/Element';
|
|
12
13
|
export { Form, type FormProps, FormItem, type FormItemProps, FormItemGroup, type FormItemGroupProps, InputField, type InputFieldProps, TextArea, type TextareaProps, InputLabel, type InputLabelProps, Select, type SelectProps, FileUpload, type FileUploadProps, RadioGroup, type RadioGroupProps, RadioButton, type RadioButtonProps, Checkbox, type CheckboxProps, CheckboxGroup, type InputGroupProps, Switch, SwitchGroup, type SwitchProps, Range, type RangeProps, RadioTabGroup, type RadioTabGroupProps, PinInputField, type PinInputFieldProps, ListBox, type ListBoxProps } from './components/Form';
|
|
13
14
|
export { Meter, type MeterProps, type MeterMetaProps } from './components/Meter';
|
|
14
|
-
export { Modal, type ModalProps
|
|
15
|
+
export { Modal, type ModalProps } from './components/Modal';
|
|
15
16
|
export { NotificationsWrapper, type NotificationsWrapperProps, NotificationItem, type NotificationItemProps, } from './components/Notification';
|
|
16
17
|
export { OptionCard, OptionCardsGroup, type OptionCardProps, type OptionCardsGroupRef } from './components/OptionCard';
|
|
17
18
|
export { useOptionCard, useOptionCardsGroup } from './components/OptionCard';
|
|
18
19
|
export { Pagination, type PaginationProps } from './components/Pagination';
|
|
19
|
-
export { Portion, type PortionProps } from './components/Portion';
|
|
20
|
+
export { Portion, type PortionProps, type SpanTypes } from './components/Portion';
|
|
20
21
|
export { ProgressBar, type ProgressBarProps, type ProgressBarMetaProps } from './components/ProgressBar';
|
|
21
22
|
export { Row, type RowProps } from './components/Row';
|
|
22
23
|
export { SidebarWrapper, type SidebarWrapperNewProps, ContentWrapper, type ContentWrapperProps, SidebarHeader, type SidebarHeaderNewProps, SidebarItem, type SidebarItemNewProps, SidebarFooter, type SidebarFooterNewProps, } from './components/Sidebar';
|
|
@@ -28,5 +29,6 @@ export { ThemeProvider, type ThemeProviderProps, useTheme } from './components/T
|
|
|
28
29
|
export { ToastsWrapper, type ToastsWrapperProps, ToastItem, type ToastItemProps } from './components/Toast';
|
|
29
30
|
export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
30
31
|
export { Text, type TextProps, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, type HeadingProps, } from './components/Typography';
|
|
31
|
-
export {
|
|
32
|
+
export { BasicColours, FictoanColours, type ColourPropTypes, type EmphasisTypes, type SpacingTypes, type ShadowTypes, type ShapeTypes, type OpacityTypes, type WeightTypes, } from './components/Element/constants';
|
|
33
|
+
export { oklchColourDefinitions, type ColourDefinition, type OklchColourName, } from './styles/colours';
|
|
32
34
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,wCAAwC,CAAC;AAGhD,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AACjC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,wBAAwB,CAAC;AAGhC,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file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ACvB,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,115 +1,133 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client;";
|
|
3
|
-
import { A,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
3
|
+
import { A as h, h as u, i as c, B as i, j as t, c as m, a as n, b as d, C as l, d as p, m as g, n as b, e as C, $ as S, g as k, f as B, D as T, E as y, o as F, F as G, p as H, q as I, r as w, H as x, ad as f, ae as v, af as O, ag as P, ah as R, ai as A, l as D, I as W, s as j, L as M, M as N, z as L, G as q, N as z, K as E, J as U, W as J, X as K, O as Q, P as V, Q as X, U as Y, R as Z, t as _, u as $, v as aa, V as ea, S as oa, w as ra, a2 as sa, a0 as ha, a1 as ua, _ as ca, a3 as ia, a4 as ta, k as ma, a5 as na, x as da, y as la, a6 as pa, a7 as ga, aj as ba, T as Ca, a8 as Sa, ab as ka, aa as Ba, ac as Ta, Y as ya, Z as Fa, a9 as Ga } from "./Accordion-ZNSXFjKa.js";
|
|
4
|
+
const a = {
|
|
5
|
+
// Reds & Pinks (0-30°)
|
|
6
|
+
pink: { hue: 0, chroma: 0.185 },
|
|
7
|
+
rose: { hue: 10, chroma: 0.175 },
|
|
8
|
+
crimson: { hue: 20, chroma: 0.195 },
|
|
9
|
+
red: { hue: 30, chroma: 0.234 },
|
|
10
|
+
// Oranges & Earth tones (40-70°)
|
|
11
|
+
salmon: { hue: 40, chroma: 0.165 },
|
|
12
|
+
sienna: { hue: 50, chroma: 0.095 },
|
|
13
|
+
orange: { hue: 60, chroma: 0.175 },
|
|
14
|
+
amber: { hue: 70, chroma: 0.164 },
|
|
15
|
+
// Yellows (80-100°)
|
|
16
|
+
gold: { hue: 80, chroma: 0.155 },
|
|
17
|
+
yellow: { hue: 90, chroma: 0.155 },
|
|
18
|
+
lime: { hue: 100, chroma: 0.145 },
|
|
19
|
+
// Greens (110-170°)
|
|
20
|
+
chartreuse: { hue: 110, chroma: 0.145 },
|
|
21
|
+
spring: { hue: 120, chroma: 0.14 },
|
|
22
|
+
pistachio: { hue: 130, chroma: 0.1 },
|
|
23
|
+
sage: { hue: 140, chroma: 0.09 },
|
|
24
|
+
green: { hue: 150, chroma: 0.145 },
|
|
25
|
+
emerald: { hue: 160, chroma: 0.155 },
|
|
26
|
+
jade: { hue: 170, chroma: 0.125 },
|
|
27
|
+
// Teals & Cyans (180-210°)
|
|
28
|
+
teal: { hue: 180, chroma: 0.115 },
|
|
29
|
+
cyan: { hue: 190, chroma: 0.135 },
|
|
30
|
+
aqua: { hue: 200, chroma: 0.125 },
|
|
31
|
+
azure: { hue: 210, chroma: 0.145 },
|
|
32
|
+
// Blues (220-270°)
|
|
33
|
+
sky: { hue: 220, chroma: 0.145 },
|
|
34
|
+
cerulean: { hue: 230, chroma: 0.155 },
|
|
35
|
+
cobalt: { hue: 240, chroma: 0.175 },
|
|
36
|
+
navy: { hue: 250, chroma: 0.145 },
|
|
37
|
+
blue: { hue: 260, chroma: 0.195 },
|
|
38
|
+
royal: { hue: 270, chroma: 0.185 },
|
|
39
|
+
// Purples & Violets (280-330°)
|
|
40
|
+
indigo: { hue: 280, chroma: 0.165 },
|
|
41
|
+
iris: { hue: 290, chroma: 0.15 },
|
|
42
|
+
violet: { hue: 300, chroma: 0.135 },
|
|
43
|
+
plum: { hue: 310, chroma: 0.125 },
|
|
44
|
+
purple: { hue: 320, chroma: 0.125 },
|
|
45
|
+
magenta: { hue: 330, chroma: 0.165 },
|
|
46
|
+
// Magentas & Back to pink (340-350°)
|
|
47
|
+
fuchsia: { hue: 340, chroma: 0.185 },
|
|
48
|
+
cerise: { hue: 350, chroma: 0.19 },
|
|
49
|
+
// Neutrals (special cases)
|
|
50
|
+
slate: { hue: 255, chroma: 0.02 },
|
|
51
|
+
grey: { hue: 0, chroma: 0 },
|
|
52
|
+
brown: { hue: 55, chroma: 0.065 }
|
|
53
|
+
}, e = ["transparent", "black", "white"], o = [...Object.keys(a), ...e];
|
|
31
54
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
BasicColours,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
FictoanColours,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
an as showModal,
|
|
110
|
-
t as toggleDrawer,
|
|
111
|
-
ap as toggleModal,
|
|
112
|
-
$ as useOptionCard,
|
|
113
|
-
a0 as useOptionCardsGroup,
|
|
114
|
-
ac as useTheme
|
|
55
|
+
h as Accordion,
|
|
56
|
+
u as Article,
|
|
57
|
+
c as Aside,
|
|
58
|
+
i as Badge,
|
|
59
|
+
e as BasicColours,
|
|
60
|
+
t as Body,
|
|
61
|
+
m as Breadcrumbs,
|
|
62
|
+
n as Button,
|
|
63
|
+
d as ButtonGroup,
|
|
64
|
+
l as Callout,
|
|
65
|
+
p as Card,
|
|
66
|
+
g as Checkbox,
|
|
67
|
+
b as CheckboxGroup,
|
|
68
|
+
C as CodeBlock,
|
|
69
|
+
S as ContentWrapper,
|
|
70
|
+
k as Div,
|
|
71
|
+
B as Divider,
|
|
72
|
+
T as Drawer,
|
|
73
|
+
y as Element,
|
|
74
|
+
o as FictoanColours,
|
|
75
|
+
F as FileUpload,
|
|
76
|
+
G as Footer,
|
|
77
|
+
H as Form,
|
|
78
|
+
I as FormItem,
|
|
79
|
+
w as FormItemGroup,
|
|
80
|
+
x as Header,
|
|
81
|
+
f as Heading1,
|
|
82
|
+
v as Heading2,
|
|
83
|
+
O as Heading3,
|
|
84
|
+
P as Heading4,
|
|
85
|
+
R as Heading5,
|
|
86
|
+
A as Heading6,
|
|
87
|
+
D as Hyperlink,
|
|
88
|
+
W as InputField,
|
|
89
|
+
j as InputLabel,
|
|
90
|
+
M as ListBox,
|
|
91
|
+
N as Main,
|
|
92
|
+
L as Meter,
|
|
93
|
+
q as Modal,
|
|
94
|
+
z as Nav,
|
|
95
|
+
E as NotificationItem,
|
|
96
|
+
U as NotificationsWrapper,
|
|
97
|
+
J as OptionCard,
|
|
98
|
+
K as OptionCardsGroup,
|
|
99
|
+
Q as Pagination,
|
|
100
|
+
V as PinInputField,
|
|
101
|
+
X as Portion,
|
|
102
|
+
Y as ProgressBar,
|
|
103
|
+
Z as RadioButton,
|
|
104
|
+
_ as RadioGroup,
|
|
105
|
+
$ as RadioTabGroup,
|
|
106
|
+
aa as Range,
|
|
107
|
+
ea as Row,
|
|
108
|
+
oa as Section,
|
|
109
|
+
ra as Select,
|
|
110
|
+
sa as SidebarFooter,
|
|
111
|
+
ha as SidebarHeader,
|
|
112
|
+
ua as SidebarItem,
|
|
113
|
+
ca as SidebarWrapper,
|
|
114
|
+
ia as Skeleton,
|
|
115
|
+
ta as SkeletonGroup,
|
|
116
|
+
ma as Span,
|
|
117
|
+
na as Spinner,
|
|
118
|
+
da as Switch,
|
|
119
|
+
la as SwitchGroup,
|
|
120
|
+
pa as Table,
|
|
121
|
+
ga as Tabs,
|
|
122
|
+
ba as Text,
|
|
123
|
+
Ca as TextArea,
|
|
124
|
+
Sa as ThemeProvider,
|
|
125
|
+
ka as ToastItem,
|
|
126
|
+
Ba as ToastsWrapper,
|
|
127
|
+
Ta as Tooltip,
|
|
128
|
+
a as oklchColourDefinitions,
|
|
129
|
+
ya as useOptionCard,
|
|
130
|
+
Fa as useOptionCardsGroup,
|
|
131
|
+
Ga as useTheme
|
|
115
132
|
};
|
|
133
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/styles/colours.ts","../src/components/Element/constants.ts"],"sourcesContent":["// OKLCH colour definitions\n// Hue: 0-360 degrees (OKLCH hue wheel)\n// Chroma: colour intensity (0 = grey, ~0.4 = vivid)\n\nexport interface ColourDefinition {\n hue : number;\n chroma : number;\n}\n\n// 36-colour palette with ~10° hue gaps\nexport const oklchColourDefinitions : Record<string, ColourDefinition> = {\n // Reds & Pinks (0-30°)\n pink : {hue : 0, chroma : 0.185},\n rose : {hue : 10, chroma : 0.175},\n crimson : {hue : 20, chroma : 0.195},\n red : {hue : 30, chroma : 0.234},\n\n // Oranges & Earth tones (40-70°)\n salmon : {hue : 40, chroma : 0.165},\n sienna : {hue : 50, chroma : 0.095},\n orange : {hue : 60, chroma : 0.175},\n amber : {hue : 70, chroma : 0.164},\n\n // Yellows (80-100°)\n gold : {hue : 80, chroma : 0.155},\n yellow : {hue : 90, chroma : 0.155},\n lime : {hue : 100, chroma : 0.145},\n\n // Greens (110-170°)\n chartreuse : {hue : 110, chroma : 0.145},\n spring : {hue : 120, chroma : 0.14},\n pistachio : {hue : 130, chroma : 0.1},\n sage : {hue : 140, chroma : 0.09},\n green : {hue : 150, chroma : 0.145},\n emerald : {hue : 160, chroma : 0.155},\n jade : {hue : 170, chroma : 0.125},\n\n // Teals & Cyans (180-210°)\n teal : {hue : 180, chroma : 0.115},\n cyan : {hue : 190, chroma : 0.135},\n aqua : {hue : 200, chroma : 0.125},\n azure : {hue : 210, chroma : 0.145},\n\n // Blues (220-270°)\n sky : {hue : 220, chroma : 0.145},\n cerulean : {hue : 230, chroma : 0.155},\n cobalt : {hue : 240, chroma : 0.175},\n navy : {hue : 250, chroma : 0.145},\n blue : {hue : 260, chroma : 0.195},\n royal : {hue : 270, chroma : 0.185},\n\n // Purples & Violets (280-330°)\n indigo : {hue : 280, chroma : 0.165},\n iris : {hue : 290, chroma : 0.15},\n violet : {hue : 300, chroma : 0.135},\n plum : {hue : 310, chroma : 0.125},\n purple : {hue : 320, chroma : 0.125},\n magenta : {hue : 330, chroma : 0.165},\n\n // Magentas & Back to pink (340-350°)\n fuchsia : {hue : 340, chroma : 0.185},\n cerise : {hue : 350, chroma : 0.19},\n\n // Neutrals (special cases)\n slate : {hue : 255, chroma : 0.02},\n grey : {hue : 0, chroma : 0},\n brown : {hue : 55, chroma : 0.065},\n};\n\n// Colour names for type safety\nexport type OklchColourName = keyof typeof oklchColourDefinitions;\n","// REACT CORE ==========================================================================================================\nimport { ElementType, FormEvent, HTMLProps } from \"react\";\n\n// STYLES ==============================================================================================================\nimport { oklchColourDefinitions, type OklchColourName } from \"../../styles/colours\";\n\n// Basic colours without hue/chroma (not part of OKLCH definitions)\nexport const BasicColours = [ \"transparent\", \"black\", \"white\" ] as const;\ntype BasicColoursType = typeof BasicColours[number];\n\n// Combined list of all available colours\nexport const FictoanColours = [ ...Object.keys(oklchColourDefinitions), ...BasicColours ] as const;\n\ntype Luminance = \"dark\" | \"light\";\ntype ShadeLevel = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;\ntype OpacityLevel = 0 | 5 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;\ntype CustomColours = \"hue\" | \"tint\" | \"shade\" | \"analogue\" | \"accent\";\n\n// prettier-ignore\nexport type EmphasisTypes = \"primary\" | \"secondary\" | \"tertiary\" | \"custom\";\nexport type SpacingTypes = \"none\" | \"nano\" | \"micro\" | \"tiny\" | \"small\" | \"medium\" | \"large\" | \"huge\";\nexport type ShadowTypes = \"none\" | \"mild\" | \"hard\" | \"soft\";\nexport type ShapeTypes = \"rounded\" | \"curved\";\nexport type OpacityTypes = \"0\" | \"5\" | \"10\" | \"20\" | \"30\" | \"40\" | \"50\" | \"60\" | \"70\" | \"80\" | \"90\";\nexport type WeightTypes = \"100\" | \"200\" | \"300\" | \"400\" | \"500\" | \"600\" | \"700\" | \"800\" | \"900\";\n\nexport type ColourPropTypes =\n | `${OklchColourName}-${Luminance}${ShadeLevel}`\n | `${OklchColourName}-${Luminance}${ShadeLevel}-opacity${OpacityLevel}`\n | `${OklchColourName}-opacity${OpacityLevel}`\n | `${BasicColoursType}-opacity${OpacityLevel}`\n | OklchColourName\n | BasicColoursType\n | CustomColours\n | \"\";\n\nexport interface CommonProps {\n bgColor ? : ColourPropTypes;\n bgColour ? : ColourPropTypes;\n bgOpacity ? : OpacityTypes;\n textColor ? : ColourPropTypes;\n textColour ? : ColourPropTypes;\n borderColor ? : ColourPropTypes;\n borderColour ? : ColourPropTypes;\n borderOpacity ? : OpacityTypes;\n fillColor ? : ColourPropTypes;\n fillColour ? : ColourPropTypes;\n strokeColor ? : ColourPropTypes;\n strokeColour ? : ColourPropTypes;\n shadow ? : ShadowTypes;\n shape ? : ShapeTypes;\n opacity ? : OpacityTypes;\n // Flexbox -----------------------------------------------------------------\n layoutAsFlexbox ? : boolean;\n stackVertically ? : boolean;\n stackHorizontally ? : boolean;\n // Grid --------------------------------------------------------------------\n layoutAsGrid ? : boolean;\n columns ? : string;\n // Common ------------------------------------------------------------------\n gap ? : SpacingTypes;\n // Margin ------------------------------------------------------------------\n margin ? : SpacingTypes;\n horizontalMargin ? : SpacingTypes;\n verticalMargin ? : SpacingTypes;\n marginTop ? : SpacingTypes;\n marginRight ? : SpacingTypes;\n marginBottom ? : SpacingTypes;\n marginLeft ? : SpacingTypes;\n // Padding -----------------------------------------------------------------\n padding ? : SpacingTypes;\n horizontalPadding ? : SpacingTypes;\n verticalPadding ? : SpacingTypes;\n paddingTop ? : SpacingTypes;\n paddingRight ? : SpacingTypes;\n paddingBottom ? : SpacingTypes;\n paddingLeft ? : SpacingTypes;\n horizontallyCentreThis ? : boolean;\n horizontallyCenterThis ? : boolean;\n verticallyCentreItems ? : boolean;\n verticallyCenterItems ? : boolean;\n pushItemsToEnds ? : boolean;\n isFullWidth ? : boolean;\n isFullHeight ? : boolean;\n hideOnMobile ? : boolean;\n showOnlyOnMobile ? : boolean;\n hideOnTabletPortrait ? : boolean;\n showOnlyOnTabletPortrait ? : boolean;\n hideOnTabletLandscape ? : boolean;\n showOnlyOnTabletLandscape ? : boolean;\n hideOnDesktop ? : boolean;\n showOnlyOnDesktop ? : boolean;\n weight ? : WeightTypes;\n classNames ? : string[];\n}\n\nexport interface CommonAndHTMLProps<T extends {}>\n extends CommonProps, Omit<HTMLProps<T>, \"as\" | \"size\" | \"ref\" | \"shape\"> {}\n\n// Fictoan has two different types of event handlers, one for standard events and one for direct values\n// This generic event handler type is a union of the two\nexport type FlexibleEventHandler<T, V = any> =\n | ((event : T) => void)\n | ((value : V) => void);\n\n// prettier-ignore\nexport interface ElementProps<T extends {}> extends CommonProps, Omit<HTMLProps<T>, \"as\" | \"ref\" | \"shape\"> {\n as ? : ElementType;\n className ?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S,MAAA;AAAA;AAAA,EAG7B,KAAW,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAChC,UAAW,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAChC,QAAW,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAChC,MAAW,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAChC,MAAW,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAChC,OAAW,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA;AAAA,EAGhC,QAAU,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAC/B,MAAU,EAAC,KAAM,KAAK,QAAS,KAAA;AAAA,EAC/B,QAAU,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAC/B,MAAU,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAC/B,QAAU,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAC/B,SAAU,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA;AAAA,EAG/B,SAAU,EAAC,KAAM,KAAK,QAAS,MAAA;AAAA,EAC/B,QAAU,EAAC,KAAM,KAAK,QAAS,KAAA;AAAA;AAAA,EAG/B,OAAQ,EAAC,KAAM,KAAK,QAAS,KAAA;AAAA,EAC7B,MAAQ,EAAC,KAAM,GAAG,QAAS,EAAA;AAAA,EAC3B,OAAQ,EAAC,KAAM,IAAI,QAAS,MAAA;AAChC,GC5DaC,IAAe,CAAE,eAAe,SAAS,OAAQ,GAIjDC,IAAiB,CAAE,GAAG,OAAO,KAAKF,CAAsB,GAAG,GAAGC,CAAa;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateColourClasses.d.ts","sourceRoot":"","sources":["../../src/scripts/generateColourClasses.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colours.d.ts","sourceRoot":"","sources":["../../src/styles/colours.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAM,MAAM,CAAC;IAChB,MAAM,EAAG,MAAM,CAAC;CACnB;AAGD,eAAO,MAAM,sBAAsB,EAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAyDpE,CAAC;AAGF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SpacingTypes } from '../components/Element/constants';
|
|
2
|
+
|
|
3
|
+
export interface PropSeparationResult<T extends Record<string, any>> {
|
|
4
|
+
fictoanProps: {
|
|
5
|
+
size?: Exclude<SpacingTypes, "nano" | "huge">;
|
|
6
|
+
};
|
|
7
|
+
htmlProps: Omit<T, "size"> & {
|
|
8
|
+
size?: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Separates Fictoan-specific props from HTML props to prevent conflicts.
|
|
13
|
+
*
|
|
14
|
+
* The main conflict is with the 'size' prop:
|
|
15
|
+
* - Fictoan uses size as a string for CSS classes (e.g., "small", "medium", "large")
|
|
16
|
+
* - HTML form elements use size as a number for visual width
|
|
17
|
+
*
|
|
18
|
+
* @param props - The props object to separate
|
|
19
|
+
* @returns Object with fictoanProps and htmlProps
|
|
20
|
+
*/
|
|
21
|
+
export declare const separateFictoanFromHTMLProps: <T extends Record<string, any>>(props: T) => PropSeparationResult<T>;
|
|
22
|
+
//# sourceMappingURL=propSeparation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propSeparation.d.ts","sourceRoot":"","sources":["../../src/utils/propSeparation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC/D,YAAY,EAAG;QACX,IAAK,CAAC,EAAG,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;KACnD,CAAC;IACF,SAAS,EAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;QAC7B,IAAK,CAAC,EAAG,MAAM,CAAC;KACnB,CAAC;CACL;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACtE,OAAQ,CAAC,KACT,oBAAoB,CAAC,CAAC,CAczB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name" : "fictoan-react",
|
|
3
|
-
"version" : "
|
|
3
|
+
"version" : "2.0.0-alpha.1",
|
|
4
4
|
"description" : "A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.",
|
|
5
5
|
"repository" : {
|
|
6
6
|
"type" : "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"type" : "module",
|
|
14
14
|
"sideEffects" : [
|
|
15
15
|
"./src/styles/*.css",
|
|
16
|
-
"./src/components
|
|
16
|
+
"./src/components/**/*.css"
|
|
17
17
|
],
|
|
18
18
|
"files" : [
|
|
19
19
|
"dist",
|
|
@@ -34,12 +34,13 @@
|
|
|
34
34
|
"./dist/" : "./dist/"
|
|
35
35
|
},
|
|
36
36
|
"scripts" : {
|
|
37
|
-
"watch"
|
|
38
|
-
"build"
|
|
39
|
-
"build:umd"
|
|
40
|
-
"tree-shake"
|
|
41
|
-
"test"
|
|
42
|
-
"generate-colours"
|
|
37
|
+
"watch" : "vite build --watch",
|
|
38
|
+
"build" : "tsc && vite build",
|
|
39
|
+
"build:umd" : "tsc && vite build -c vite.config.umd.js",
|
|
40
|
+
"tree-shake" : "agadoo",
|
|
41
|
+
"test" : "echo \"Error: no test specified\" && exit 1",
|
|
42
|
+
"generate-colours" : "tsx src/scripts/generateColourClasses.ts",
|
|
43
|
+
"build:props-metadata" : "node src/scripts/generatePropsMetadata.js"
|
|
43
44
|
},
|
|
44
45
|
"keywords" : [
|
|
45
46
|
"react",
|
|
@@ -64,38 +65,36 @@
|
|
|
64
65
|
],
|
|
65
66
|
"license" : "MIT",
|
|
66
67
|
"devDependencies" : {
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@types/
|
|
72
|
-
"@types/
|
|
73
|
-
"@
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"vite"
|
|
91
|
-
"vite-plugin-
|
|
92
|
-
"vite-plugin-lib-inject-css" : "^1.3.0",
|
|
93
|
-
"vite-plugin-svgr" : "^4.2.0"
|
|
68
|
+
"@csstools/postcss-color-mix-function" : "^3.0.12",
|
|
69
|
+
"@fullhuman/postcss-purgecss" : "^7.0.2",
|
|
70
|
+
"@types/node" : "^20.11.0",
|
|
71
|
+
"@types/prismjs" : "^1.26.4",
|
|
72
|
+
"@types/react" : "^18.3.27",
|
|
73
|
+
"@types/react-dom" : "^18.3.7",
|
|
74
|
+
"@vitejs/plugin-react" : "^5.1.2",
|
|
75
|
+
"agadoo" : "^3.0.0",
|
|
76
|
+
"autoprefixer" : "^10.4.14",
|
|
77
|
+
"glob" : "^10.3.10",
|
|
78
|
+
"html-react-parser" : "^5.1.15",
|
|
79
|
+
"postcss" : "^8.4.30",
|
|
80
|
+
"postcss-nesting" : "^12.0.1",
|
|
81
|
+
"prismjs" : "^1.29.0",
|
|
82
|
+
"react" : "^18.3.1",
|
|
83
|
+
"react-docgen-typescript" : "^2.4.0",
|
|
84
|
+
"react-dom" : "^18.3.1",
|
|
85
|
+
"rollup-plugin-visualizer" : "^5.11.0",
|
|
86
|
+
"ts-node" : "^10.9.2",
|
|
87
|
+
"tsx" : "^4.19.2",
|
|
88
|
+
"typescript" : "^5.9.3",
|
|
89
|
+
"vite" : "6.4.1",
|
|
90
|
+
"vite-plugin-dts" : "^3.6.4",
|
|
91
|
+
"vite-plugin-lib-inject-css" : "^1.3.0",
|
|
92
|
+
"vite-plugin-svgr" : "^4.2.0"
|
|
94
93
|
},
|
|
95
94
|
"peerDependencies" : {
|
|
95
|
+
"prismjs" : "^1.29.0",
|
|
96
96
|
"react" : "^18.2.0",
|
|
97
|
-
"react-dom" : "^18.2.0"
|
|
98
|
-
"prismjs" : "^1.29.0"
|
|
97
|
+
"react-dom" : "^18.2.0"
|
|
99
98
|
},
|
|
100
99
|
"peerDependenciesMeta" : {
|
|
101
100
|
"prismjs" : {
|