@atom-learning/components 2.0.0-beta.0 → 2.0.0
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/CHANGELOG.md +26 -0
- package/dist/components/accordion/Accordion.d.ts +0 -2
- package/dist/components/accordion/AccordionContent.d.ts +0 -2
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.d.ts +0 -2
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/accordion/AccordionTrigger.d.ts +0 -2
- package/dist/components/action-icon/ActionIcon.constants.d.ts +6 -0
- package/dist/components/action-icon/ActionIcon.constants.js +1 -0
- package/dist/components/action-icon/ActionIcon.d.ts +1 -3
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/alert-dialog/AlertDialog.d.ts +0 -2
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +0 -2
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/alert-dialog/alert-context/AlertContext.js +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialog.js +1 -1
- package/dist/components/badge/Badge.d.ts +0 -4
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/box/Box.d.ts +0 -2
- package/dist/components/button/Button.d.ts +0 -2
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/Calendar.d.ts +3 -0
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/calendar/Day.d.ts +0 -2
- package/dist/components/calendar/constants.d.ts +7 -0
- package/dist/components/calendar/constants.js +1 -1
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/carousel/CarouselPagination.d.ts +0 -2
- package/dist/components/carousel/CarouselSlide.d.ts +0 -2
- package/dist/components/carousel/CarouselSlider.d.ts +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +0 -2
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/combobox/Combobox.d.ts +0 -2
- package/dist/components/combobox/Combobox.js +1 -1
- package/dist/components/combobox/ComboboxInput.d.ts +0 -2
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +0 -2
- package/dist/components/combobox/ComboboxOption.d.ts +0 -2
- package/dist/components/combobox/ComboboxPopover.d.ts +0 -2
- package/dist/components/date-input/DateInput.js +1 -1
- package/dist/components/dialog/Dialog.d.ts +0 -2
- package/dist/components/dialog/DialogBackground.d.ts +0 -4
- package/dist/components/dialog/DialogClose.d.ts +0 -2
- package/dist/components/dialog/DialogContent.d.ts +0 -2
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.d.ts +0 -2
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +0 -2
- package/dist/components/empty-state/EmptyState.d.ts +0 -4
- package/dist/components/empty-state/EmptyState.js +1 -1
- package/dist/components/empty-state/EmptyStateBody.d.ts +0 -4
- package/dist/components/empty-state/EmptyStateBody.js +1 -1
- package/dist/components/empty-state/EmptyStateImage.d.ts +0 -4
- package/dist/components/empty-state/EmptyStateImage.js +1 -1
- package/dist/components/empty-state/EmptyStateTitle.d.ts +0 -2
- package/dist/components/field-wrapper/FieldDescription.js +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/file-input/FileInput.js +1 -1
- package/dist/components/flex/Flex.d.ts +0 -2
- package/dist/components/form/Form.d.ts +0 -2
- package/dist/components/grid/Grid.d.ts +1 -3
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/heading/Heading.d.ts +0 -2
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/icon/Icon.d.ts +0 -2
- package/dist/components/image/Image.d.ts +0 -2
- package/dist/components/input/Input.d.ts +0 -2
- package/dist/components/label/Label.d.ts +0 -2
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.d.ts +0 -2
- package/dist/components/link/Link.js +1 -1
- package/dist/components/list/List.d.ts +0 -4
- package/dist/components/markdown-content/MarkdownContent.js +1 -1
- package/dist/components/markdown-content/components/MarkdownCode.js +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/notification-badge/NotificationBadge.d.ts +0 -4
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/password-input/PasswordInput.js +1 -1
- package/dist/components/popover/Popover.d.ts +0 -2
- package/dist/components/popover/PopoverContent.d.ts +0 -2
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +0 -2
- package/dist/components/radio-button/RadioButton.d.ts +0 -2
- package/dist/components/radio-button/RadioButtonGroup.d.ts +0 -2
- package/dist/components/radio-button/RadioButtonGroup.js +1 -1
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-card/RadioCard.d.ts +0 -2
- package/dist/components/radio-card/RadioCard.js +1 -1
- package/dist/components/radio-card/RadioCardGroup.js +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/select/Select.d.ts +0 -2
- package/dist/components/select/Select.js +1 -1
- package/dist/components/slider/Slider.d.ts +0 -2
- package/dist/components/slider-field/SliderField.js +1 -1
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +1 -1
- package/dist/components/stack-content/StackContent.d.ts +0 -2
- package/dist/components/stack-content/StackContent.js +1 -1
- package/dist/components/stepper/StepperStepBullet.d.ts +1 -5
- package/dist/components/stepper/StepperStepBullet.js +1 -1
- package/dist/components/stepper/StepperStepContainer.d.ts +1 -4
- package/dist/components/stepper/StepperStepContainer.js +1 -1
- package/dist/components/stepper/StepperStepForward.js +1 -1
- package/dist/components/stepper/StepperStepLabel.d.ts +1 -5
- package/dist/components/stepper/StepperStepLabel.js +1 -1
- package/dist/components/stepper/StepperSteps.js +1 -1
- package/dist/components/stepper/stepper-context/StepperContext.js +1 -1
- package/dist/components/stepper/types.d.ts +4 -1
- package/dist/components/stepper/types.js +1 -1
- package/dist/components/switch/Switch.d.ts +0 -2
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/table/Table.d.ts +0 -2
- package/dist/components/table/TableBody.d.ts +0 -2
- package/dist/components/table/TableBody.js +1 -1
- package/dist/components/table/TableCell.d.ts +0 -2
- package/dist/components/table/TableFooter.d.ts +0 -2
- package/dist/components/table/TableFooterCell.d.ts +0 -2
- package/dist/components/table/TableHeader.d.ts +0 -2
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableHeaderCell.d.ts +0 -2
- package/dist/components/table/TableRow.d.ts +0 -2
- package/dist/components/tabs/TabTrigger.d.ts +0 -2
- package/dist/components/tabs/TabTrigger.js +1 -1
- package/dist/components/tabs/Tabs.d.ts +0 -4
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +0 -2
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/tabs/utils.js +1 -1
- package/dist/components/text/Text.d.ts +0 -2
- package/dist/components/textarea/Textarea.d.ts +0 -2
- package/dist/components/toast/Toast.d.ts +0 -2
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/ToastProvider.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +0 -4
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +0 -4
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +0 -2
- package/dist/components/toggle-group/index.d.ts +0 -10
- package/dist/components/tooltip/TooltipContent.d.ts +0 -2
- package/dist/components/validation-error/ValidationError.js +1 -1
- package/dist/components/video/Video.d.ts +0 -4
- package/dist/docgen.json +1 -1
- package/dist/docs/ActionIcon.mdx +13 -19
- package/dist/docs/Checkbox.mdx +4 -0
- package/dist/docs/Flex.mdx +3 -3
- package/dist/docs/Icon.mdx +1 -1
- package/dist/docs/Slider.mdx +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/stitches.d.ts +0 -20
- package/dist/utilities/hooks/useCallbackRef.d.ts +9 -0
- package/dist/utilities/hooks/useCallbackRef.js +1 -0
- package/dist/utilities/{use-is-mounted-ref/index.d.ts → hooks/useIsMountedRef.d.ts} +0 -0
- package/dist/utilities/{use-is-mounted-ref/index.js → hooks/useIsMountedRef.js} +0 -0
- package/package.json +3 -3
package/dist/stitches.d.ts
CHANGED
|
@@ -172,7 +172,6 @@ declare const stitchesConfig: import("@stitches/react/types/stitches").default<"
|
|
|
172
172
|
warning: any;
|
|
173
173
|
warningMid: any;
|
|
174
174
|
warningDark: any;
|
|
175
|
-
warningText: any;
|
|
176
175
|
subjectEnglish: any;
|
|
177
176
|
subjectMaths: any;
|
|
178
177
|
subjectScience: any;
|
|
@@ -192,7 +191,6 @@ declare const stitchesConfig: import("@stitches/react/types/stitches").default<"
|
|
|
192
191
|
"7": any;
|
|
193
192
|
"8": any;
|
|
194
193
|
"9": any;
|
|
195
|
-
"10": any;
|
|
196
194
|
};
|
|
197
195
|
fontSizes: {
|
|
198
196
|
xs: any;
|
|
@@ -399,7 +397,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
399
397
|
warning: any;
|
|
400
398
|
warningMid: any;
|
|
401
399
|
warningDark: any;
|
|
402
|
-
warningText: any;
|
|
403
400
|
subjectEnglish: any;
|
|
404
401
|
subjectMaths: any;
|
|
405
402
|
subjectScience: any;
|
|
@@ -419,7 +416,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
419
416
|
"7": any;
|
|
420
417
|
"8": any;
|
|
421
418
|
"9": any;
|
|
422
|
-
"10": any;
|
|
423
419
|
};
|
|
424
420
|
fontSizes: {
|
|
425
421
|
xs: any;
|
|
@@ -634,7 +630,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
634
630
|
warning?: string | number | boolean | undefined;
|
|
635
631
|
warningMid?: string | number | boolean | undefined;
|
|
636
632
|
warningDark?: string | number | boolean | undefined;
|
|
637
|
-
warningText?: string | number | boolean | undefined;
|
|
638
633
|
subjectEnglish?: string | number | boolean | undefined;
|
|
639
634
|
subjectMaths?: string | number | boolean | undefined;
|
|
640
635
|
subjectScience?: string | number | boolean | undefined;
|
|
@@ -654,7 +649,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
654
649
|
7?: string | number | boolean | undefined;
|
|
655
650
|
8?: string | number | boolean | undefined;
|
|
656
651
|
9?: string | number | boolean | undefined;
|
|
657
|
-
10?: string | number | boolean | undefined;
|
|
658
652
|
} | undefined;
|
|
659
653
|
fontSizes?: {
|
|
660
654
|
xs?: string | number | boolean | undefined;
|
|
@@ -745,7 +739,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
745
739
|
warning?: string | number | boolean | undefined;
|
|
746
740
|
warningMid?: string | number | boolean | undefined;
|
|
747
741
|
warningDark?: string | number | boolean | undefined;
|
|
748
|
-
warningText?: string | number | boolean | undefined;
|
|
749
742
|
subjectEnglish?: string | number | boolean | undefined;
|
|
750
743
|
subjectMaths?: string | number | boolean | undefined;
|
|
751
744
|
subjectScience?: string | number | boolean | undefined;
|
|
@@ -765,7 +758,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
765
758
|
7?: string | number | boolean | undefined;
|
|
766
759
|
8?: string | number | boolean | undefined;
|
|
767
760
|
9?: string | number | boolean | undefined;
|
|
768
|
-
10?: string | number | boolean | undefined;
|
|
769
761
|
} | undefined;
|
|
770
762
|
fontSizes?: {
|
|
771
763
|
xs?: string | number | boolean | undefined;
|
|
@@ -873,7 +865,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
873
865
|
warning: any;
|
|
874
866
|
warningMid: any;
|
|
875
867
|
warningDark: any;
|
|
876
|
-
warningText: any;
|
|
877
868
|
subjectEnglish: any;
|
|
878
869
|
subjectMaths: any;
|
|
879
870
|
subjectScience: any;
|
|
@@ -893,7 +884,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
893
884
|
"7": any;
|
|
894
885
|
"8": any;
|
|
895
886
|
"9": any;
|
|
896
|
-
"10": any;
|
|
897
887
|
};
|
|
898
888
|
fontSizes: {
|
|
899
889
|
xs: any;
|
|
@@ -1098,7 +1088,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
1098
1088
|
warning: any;
|
|
1099
1089
|
warningMid: any;
|
|
1100
1090
|
warningDark: any;
|
|
1101
|
-
warningText: any;
|
|
1102
1091
|
subjectEnglish: any;
|
|
1103
1092
|
subjectMaths: any;
|
|
1104
1093
|
subjectScience: any;
|
|
@@ -1118,7 +1107,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
1118
1107
|
"7": any;
|
|
1119
1108
|
"8": any;
|
|
1120
1109
|
"9": any;
|
|
1121
|
-
"10": any;
|
|
1122
1110
|
};
|
|
1123
1111
|
fontSizes: {
|
|
1124
1112
|
xs: any;
|
|
@@ -1323,7 +1311,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
1323
1311
|
warning: any;
|
|
1324
1312
|
warningMid: any;
|
|
1325
1313
|
warningDark: any;
|
|
1326
|
-
warningText: any;
|
|
1327
1314
|
subjectEnglish: any;
|
|
1328
1315
|
subjectMaths: any;
|
|
1329
1316
|
subjectScience: any;
|
|
@@ -1343,7 +1330,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
1343
1330
|
"7": any;
|
|
1344
1331
|
"8": any;
|
|
1345
1332
|
"9": any;
|
|
1346
|
-
"10": any;
|
|
1347
1333
|
};
|
|
1348
1334
|
fontSizes: {
|
|
1349
1335
|
xs: any;
|
|
@@ -1553,7 +1539,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
1553
1539
|
warning: any;
|
|
1554
1540
|
warningMid: any;
|
|
1555
1541
|
warningDark: any;
|
|
1556
|
-
warningText: any;
|
|
1557
1542
|
subjectEnglish: any;
|
|
1558
1543
|
subjectMaths: any;
|
|
1559
1544
|
subjectScience: any;
|
|
@@ -1573,7 +1558,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
1573
1558
|
"7": any;
|
|
1574
1559
|
"8": any;
|
|
1575
1560
|
"9": any;
|
|
1576
|
-
"10": any;
|
|
1577
1561
|
};
|
|
1578
1562
|
fontSizes: {
|
|
1579
1563
|
xs: any;
|
|
@@ -1796,7 +1780,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
1796
1780
|
warning: any;
|
|
1797
1781
|
warningMid: any;
|
|
1798
1782
|
warningDark: any;
|
|
1799
|
-
warningText: any;
|
|
1800
1783
|
subjectEnglish: any;
|
|
1801
1784
|
subjectMaths: any;
|
|
1802
1785
|
subjectScience: any;
|
|
@@ -1816,7 +1799,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
1816
1799
|
"7": any;
|
|
1817
1800
|
"8": any;
|
|
1818
1801
|
"9": any;
|
|
1819
|
-
"10": any;
|
|
1820
1802
|
};
|
|
1821
1803
|
fontSizes: {
|
|
1822
1804
|
xs: any;
|
|
@@ -2015,7 +1997,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
2015
1997
|
warning: import("@stitches/react/types/theme").Token<"warning", string, "colors", "">;
|
|
2016
1998
|
warningMid: import("@stitches/react/types/theme").Token<"warningMid", string, "colors", "">;
|
|
2017
1999
|
warningDark: import("@stitches/react/types/theme").Token<"warningDark", string, "colors", "">;
|
|
2018
|
-
warningText: import("@stitches/react/types/theme").Token<"warningText", string, "colors", "">;
|
|
2019
2000
|
subjectEnglish: import("@stitches/react/types/theme").Token<"subjectEnglish", string, "colors", "">;
|
|
2020
2001
|
subjectMaths: import("@stitches/react/types/theme").Token<"subjectMaths", string, "colors", "">;
|
|
2021
2002
|
subjectScience: import("@stitches/react/types/theme").Token<"subjectScience", string, "colors", "">;
|
|
@@ -2035,7 +2016,6 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
|
|
|
2035
2016
|
7: import("@stitches/react/types/theme").Token<"7", string, "space", "">;
|
|
2036
2017
|
8: import("@stitches/react/types/theme").Token<"8", string, "space", "">;
|
|
2037
2018
|
9: import("@stitches/react/types/theme").Token<"9", string, "space", "">;
|
|
2038
|
-
10: import("@stitches/react/types/theme").Token<"10", string, "space", "">;
|
|
2039
2019
|
};
|
|
2040
2020
|
fontSizes: {
|
|
2041
2021
|
xs: import("@stitches/react/types/theme").Token<"xs", string, "fontSizes", "">;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const useCallbackRef: () => [
|
|
3
|
+
React.MutableRefObject<HTMLElement | null>,
|
|
4
|
+
(HTMLElement: any) => void
|
|
5
|
+
];
|
|
6
|
+
export declare const useCallbackRefState: () => [
|
|
7
|
+
HTMLElement | null,
|
|
8
|
+
(HTMLElement: any) => void
|
|
9
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as n from"react";const t=()=>{const e=n.useRef(null),s=n.useCallback(r=>{r&&(e.current=r)},[]);return[e,s]};export{t as useCallbackRef};
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
|
-
"version": "2.0.0
|
|
7
|
+
"version": "2.0.0",
|
|
8
8
|
"description": "",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@atom-learning/icons": "1.5.0",
|
|
62
62
|
"@atom-learning/jest-stitches": "1.0.10",
|
|
63
|
-
"@atom-learning/theme": "
|
|
63
|
+
"@atom-learning/theme": "1.0.1",
|
|
64
64
|
"@commitlint/cli": "^11.0.0",
|
|
65
65
|
"@commitlint/config-conventional": "^11.0.0",
|
|
66
66
|
"@radix-ui/react-id": "0.1.5",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"@atom-learning/icons": "^1.0.0",
|
|
124
|
-
"@atom-learning/theme": "^
|
|
124
|
+
"@atom-learning/theme": "^1.0.0",
|
|
125
125
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
126
126
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
127
127
|
},
|