@shohojdhara/atomix 0.4.0 → 0.4.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/dist/atomix.css +9231 -9337
- package/dist/atomix.css.map +1 -1
- package/dist/atomix.min.css +2 -2
- package/dist/atomix.min.css.map +1 -1
- package/dist/charts.js +4 -5
- package/dist/charts.js.map +1 -1
- package/dist/core.d.ts +87 -10
- package/dist/core.js +673 -480
- package/dist/core.js.map +1 -1
- package/dist/forms.d.ts +15 -3
- package/dist/forms.js +530 -97
- package/dist/forms.js.map +1 -1
- package/dist/heavy.js +5 -6
- package/dist/heavy.js.map +1 -1
- package/dist/index.d.ts +495 -254
- package/dist/index.esm.js +1269 -723
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1273 -723
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +2 -2
- package/scripts/atomix-cli.js +10 -1
- package/scripts/cli/__tests__/utils.test.js +6 -2
- package/scripts/cli/migration-tools.js +2 -2
- package/scripts/cli/theme-bridge.js +7 -9
- package/scripts/cli/utils.js +2 -1
- package/src/components/Accordion/Accordion.stories.tsx +40 -0
- package/src/components/Accordion/Accordion.tsx +174 -56
- package/src/components/Accordion/AccordionCompound.test.tsx +70 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +156 -50
- package/src/components/Breadcrumb/BreadcrumbCompound.test.tsx +84 -0
- package/src/components/Callout/Callout.stories.tsx +166 -1011
- package/src/components/Callout/Callout.tsx +196 -84
- package/src/components/Callout/CalloutCompound.test.tsx +72 -0
- package/src/components/Dropdown/Dropdown.tsx +133 -20
- package/src/components/Dropdown/DropdownCompound.test.tsx +64 -0
- package/src/components/EdgePanel/EdgePanel.tsx +164 -112
- package/src/components/EdgePanel/EdgePanelCompound.test.tsx +53 -0
- package/src/components/Form/Select.stories.tsx +23 -0
- package/src/components/Form/Select.test.tsx +99 -0
- package/src/components/Form/Select.tsx +144 -93
- package/src/components/Form/SelectOption.tsx +88 -0
- package/src/components/Hero/Hero.stories.tsx +37 -0
- package/src/components/Hero/Hero.test.tsx +142 -0
- package/src/components/Hero/Hero.tsx +142 -3
- package/src/components/List/List.test.tsx +62 -0
- package/src/components/List/List.tsx +16 -5
- package/src/components/List/ListItem.tsx +20 -0
- package/src/components/Modal/Modal.stories.tsx +65 -1
- package/src/components/Modal/Modal.tsx +115 -35
- package/src/components/Modal/ModalCompound.test.tsx +94 -0
- package/src/components/Steps/Steps.tsx +124 -21
- package/src/components/Steps/StepsCompound.test.tsx +81 -0
- package/src/components/Tabs/Tabs.tsx +197 -44
- package/src/components/Tabs/TabsCompound.test.tsx +64 -0
- package/src/lib/composables/index.ts +0 -4
- package/src/lib/composables/useAtomixGlass.ts +0 -15
- package/src/lib/theme/devtools/CLI.ts +2 -10
- package/src/lib/types/components.ts +8 -2
- package/src/lib/utils/__tests__/componentUtils.test.ts +57 -2
- package/src/lib/utils/__tests__/themeNaming.test.ts +117 -0
- package/src/lib/utils/themeNaming.ts +1 -1
- package/src/styles/02-tools/_tools.breakpoints.scss +1 -1
- package/src/styles/02-tools/_tools.utility-api.scss +6 -6
- package/src/styles/99-utilities/_utilities.text.scss +0 -1
package/dist/core.d.ts
CHANGED
|
@@ -484,7 +484,7 @@ interface BaseComponentProps {
|
|
|
484
484
|
* Icon position options
|
|
485
485
|
*/
|
|
486
486
|
type IconPosition = 'left' | 'right';
|
|
487
|
-
type listvariant = 'dash' | 'number' | 'text';
|
|
487
|
+
type listvariant = 'dash' | 'number' | 'text' | 'default';
|
|
488
488
|
/**;
|
|
489
489
|
* List component properties
|
|
490
490
|
*/
|
|
@@ -1058,7 +1058,23 @@ interface ElevationCardProps extends CardProps {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
1060
|
type AccordionProps = AccordionProps$1;
|
|
1061
|
-
|
|
1061
|
+
interface AccordionHeaderProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'title'> {
|
|
1062
|
+
title?: ReactNode;
|
|
1063
|
+
icon?: ReactNode;
|
|
1064
|
+
iconPosition?: 'left' | 'right';
|
|
1065
|
+
isOpen?: boolean;
|
|
1066
|
+
}
|
|
1067
|
+
declare const AccordionHeader: React$1.ForwardRefExoticComponent<AccordionHeaderProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1068
|
+
interface AccordionBodyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1069
|
+
panelRef?: React$1.RefObject<HTMLDivElement>;
|
|
1070
|
+
contentRef?: React$1.RefObject<HTMLDivElement>;
|
|
1071
|
+
}
|
|
1072
|
+
declare const AccordionBody: React$1.ForwardRefExoticComponent<AccordionBodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1073
|
+
type AccordionComponent = React$1.FC<AccordionProps> & {
|
|
1074
|
+
Header: typeof AccordionHeader;
|
|
1075
|
+
Body: typeof AccordionBody;
|
|
1076
|
+
};
|
|
1077
|
+
declare const _default: AccordionComponent;
|
|
1062
1078
|
|
|
1063
1079
|
declare const Badge: React$1.FC<BadgeProps>;
|
|
1064
1080
|
|
|
@@ -1194,7 +1210,7 @@ interface BlockProps extends HTMLAttributes<HTMLElement> {
|
|
|
1194
1210
|
*/
|
|
1195
1211
|
declare const Block: React$1.ForwardRefExoticComponent<BlockProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1196
1212
|
|
|
1197
|
-
interface
|
|
1213
|
+
interface BreadcrumbItemData {
|
|
1198
1214
|
/**
|
|
1199
1215
|
* Text to display
|
|
1200
1216
|
*/
|
|
@@ -1224,11 +1240,39 @@ interface BreadcrumbItem {
|
|
|
1224
1240
|
*/
|
|
1225
1241
|
className?: string;
|
|
1226
1242
|
}
|
|
1243
|
+
|
|
1244
|
+
interface BreadcrumbItemProps extends React$1.HTMLAttributes<HTMLLIElement> {
|
|
1245
|
+
/**
|
|
1246
|
+
* URL for the breadcrumb item
|
|
1247
|
+
*/
|
|
1248
|
+
href?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* Whether this item is active (current page)
|
|
1251
|
+
*/
|
|
1252
|
+
active?: boolean;
|
|
1253
|
+
/**
|
|
1254
|
+
* Optional icon to display before the label
|
|
1255
|
+
*/
|
|
1256
|
+
icon?: ReactNode;
|
|
1257
|
+
/**
|
|
1258
|
+
* Optional click handler for the link
|
|
1259
|
+
*/
|
|
1260
|
+
onClick?: (event: React$1.MouseEvent<HTMLAnchorElement | HTMLSpanElement>) => void;
|
|
1261
|
+
/**
|
|
1262
|
+
* Optional custom link component
|
|
1263
|
+
*/
|
|
1264
|
+
linkAs?: React$1.ElementType;
|
|
1265
|
+
/**
|
|
1266
|
+
* Link props to pass to the underlying anchor or LinkComponent
|
|
1267
|
+
*/
|
|
1268
|
+
linkProps?: Record<string, any>;
|
|
1269
|
+
}
|
|
1270
|
+
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<BreadcrumbItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
1227
1271
|
interface BreadcrumbProps {
|
|
1228
1272
|
/**
|
|
1229
|
-
* Array of breadcrumb items
|
|
1273
|
+
* Array of breadcrumb items (Legacy)
|
|
1230
1274
|
*/
|
|
1231
|
-
items
|
|
1275
|
+
items?: BreadcrumbItemData[];
|
|
1232
1276
|
/**
|
|
1233
1277
|
* Custom divider character or element
|
|
1234
1278
|
*/
|
|
@@ -1249,8 +1293,15 @@ interface BreadcrumbProps {
|
|
|
1249
1293
|
* Custom style for the breadcrumb
|
|
1250
1294
|
*/
|
|
1251
1295
|
style?: React$1.CSSProperties;
|
|
1296
|
+
/**
|
|
1297
|
+
* Children (Compound)
|
|
1298
|
+
*/
|
|
1299
|
+
children?: ReactNode;
|
|
1252
1300
|
}
|
|
1253
|
-
|
|
1301
|
+
type BreadcrumbComponent = React$1.FC<BreadcrumbProps> & {
|
|
1302
|
+
Item: typeof BreadcrumbItem;
|
|
1303
|
+
};
|
|
1304
|
+
declare const Breadcrumb: BreadcrumbComponent;
|
|
1254
1305
|
|
|
1255
1306
|
type ButtonAsProp = {
|
|
1256
1307
|
as?: ElementType;
|
|
@@ -1261,14 +1312,32 @@ type ButtonAsProp = {
|
|
|
1261
1312
|
};
|
|
1262
1313
|
declare const Button: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<Omit<ButtonProps & ButtonAsProp, "ref"> & React$1.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>>;
|
|
1263
1314
|
|
|
1264
|
-
declare const Card: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<
|
|
1315
|
+
declare const Card: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement | HTMLAnchorElement>>>;
|
|
1265
1316
|
|
|
1266
1317
|
declare const ElevationCard: React$1.FC<ElevationCardProps>;
|
|
1267
1318
|
|
|
1319
|
+
declare const CalloutIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1320
|
+
declare const CalloutMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1321
|
+
declare const CalloutTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1322
|
+
declare const CalloutText: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1323
|
+
declare const CalloutActions: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1324
|
+
interface CalloutCloseButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1325
|
+
}
|
|
1326
|
+
declare const CalloutCloseButton: React$1.ForwardRefExoticComponent<CalloutCloseButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1327
|
+
declare const CalloutContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1268
1328
|
/**
|
|
1269
1329
|
* Callout component for displaying important messages, notifications, or alerts
|
|
1270
1330
|
*/
|
|
1271
|
-
|
|
1331
|
+
type CalloutComponent = React$1.FC<CalloutProps> & {
|
|
1332
|
+
Icon: typeof CalloutIcon;
|
|
1333
|
+
Message: typeof CalloutMessage;
|
|
1334
|
+
Title: typeof CalloutTitle;
|
|
1335
|
+
Text: typeof CalloutText;
|
|
1336
|
+
Actions: typeof CalloutActions;
|
|
1337
|
+
CloseButton: typeof CalloutCloseButton;
|
|
1338
|
+
Content: typeof CalloutContent;
|
|
1339
|
+
};
|
|
1340
|
+
declare const Callout: CalloutComponent;
|
|
1272
1341
|
|
|
1273
1342
|
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1274
1343
|
type IconWeight = 'thin' | 'light' | 'regular' | 'bold' | 'fill' | 'duotone';
|
|
@@ -1308,12 +1377,20 @@ interface IconProps {
|
|
|
1308
1377
|
*/
|
|
1309
1378
|
declare const Icon: React$1.FC<IconProps>;
|
|
1310
1379
|
|
|
1311
|
-
|
|
1380
|
+
interface ListItemProps extends React$1.LiHTMLAttributes<HTMLLIElement> {
|
|
1381
|
+
children?: React$1.ReactNode;
|
|
1382
|
+
}
|
|
1383
|
+
declare const ListItem: React$1.ForwardRefExoticComponent<ListItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
1384
|
+
|
|
1385
|
+
type ListComponent = React$1.FC<ListProps> & {
|
|
1386
|
+
Item: typeof ListItem;
|
|
1387
|
+
};
|
|
1388
|
+
declare const List: ListComponent;
|
|
1312
1389
|
|
|
1313
1390
|
type ListGroupProps = ListGroupProps$1;
|
|
1314
1391
|
declare const ListGroup: React$1.FC<ListGroupProps>;
|
|
1315
1392
|
|
|
1316
1393
|
declare const Spinner: React$1.FC<SpinnerProps>;
|
|
1317
1394
|
|
|
1318
|
-
export { Accordion, Badge, Block, Breadcrumb, Button, Callout, Card, ElevationCard, Icon, List, ListGroup, Spinner };
|
|
1395
|
+
export { _default as Accordion, Badge, Block, Breadcrumb, Button, Callout, Card, ElevationCard, Icon, List, ListGroup, Spinner };
|
|
1319
1396
|
export type { AccordionProps, BadgeProps, BlockProps, BreadcrumbProps, ButtonProps, CalloutProps, CardProps, ElevationCardProps, IconProps, ListGroupProps, ListProps, SpinnerProps };
|