@atom-learning/components 2.0.0 → 2.1.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 +3 -22
- package/dist/components/accordion/Accordion.d.ts +1 -0
- package/dist/components/accordion/AccordionContent.d.ts +1 -0
- package/dist/components/accordion/AccordionItem.d.ts +1 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +1 -0
- package/dist/components/action-icon/ActionIcon.d.ts +1 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +1 -0
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +1 -0
- package/dist/components/badge/Badge.d.ts +2 -0
- package/dist/components/box/Box.d.ts +1 -0
- package/dist/components/button/Button.d.ts +1 -0
- package/dist/components/calendar/Day.d.ts +1 -0
- package/dist/components/carousel/CarouselPagination.d.ts +1 -0
- package/dist/components/carousel/CarouselSlide.d.ts +1 -0
- package/dist/components/carousel/CarouselSlider.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/components/combobox/Combobox.d.ts +1 -0
- package/dist/components/combobox/ComboboxInput.d.ts +1 -0
- package/dist/components/combobox/ComboboxList.d.ts +1 -0
- package/dist/components/combobox/ComboboxOption.d.ts +1 -0
- package/dist/components/combobox/ComboboxPopover.d.ts +1 -0
- package/dist/components/dialog/Dialog.d.ts +1 -0
- package/dist/components/dialog/DialogBackground.d.ts +2 -0
- package/dist/components/dialog/DialogClose.d.ts +1 -0
- package/dist/components/dialog/DialogContent.d.ts +1 -0
- package/dist/components/divider/Divider.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +1 -0
- package/dist/components/empty-state/EmptyState.d.ts +2 -0
- package/dist/components/empty-state/EmptyStateBody.d.ts +2 -0
- package/dist/components/empty-state/EmptyStateImage.d.ts +2 -0
- package/dist/components/empty-state/EmptyStateTitle.d.ts +1 -0
- package/dist/components/field-wrapper/FieldWrapper.js +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/flex/Flex.d.ts +1 -0
- package/dist/components/form/Form.d.ts +1 -0
- package/dist/components/grid/Grid.d.ts +1 -0
- package/dist/components/heading/Heading.d.ts +1 -0
- package/dist/components/icon/Icon.d.ts +1 -0
- package/dist/components/image/Image.d.ts +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/inline-message/InlineMessage.config.d.ts +5 -0
- package/dist/components/inline-message/InlineMessage.config.js +1 -0
- package/dist/components/inline-message/InlineMessage.d.ts +541 -0
- package/dist/components/inline-message/InlineMessage.js +1 -0
- package/dist/components/inline-message/InlineMessage.types.d.ts +1 -0
- package/dist/components/inline-message/index.d.ts +1 -0
- package/dist/components/input/Input.d.ts +1 -0
- package/dist/components/label/Label.d.ts +1 -0
- package/dist/components/link/Link.d.ts +1 -0
- package/dist/components/list/List.d.ts +2 -0
- package/dist/components/notification-badge/NotificationBadge.d.ts +2 -0
- package/dist/components/popover/Popover.d.ts +1 -0
- package/dist/components/popover/PopoverContent.d.ts +1 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +1 -0
- package/dist/components/radio-button/RadioButton.d.ts +1 -0
- package/dist/components/radio-button/RadioButtonGroup.d.ts +1 -0
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-card/RadioCard.d.ts +1 -0
- package/dist/components/select/Select.d.ts +1 -0
- package/dist/components/slider/Slider.d.ts +1 -0
- package/dist/components/stack/Stack.d.ts +1 -0
- package/dist/components/stack-content/StackContent.d.ts +1 -0
- package/dist/components/stepper/StepperStepBullet.d.ts +2 -0
- package/dist/components/stepper/StepperStepContainer.d.ts +2 -0
- package/dist/components/stepper/StepperStepLabel.d.ts +2 -0
- package/dist/components/switch/Switch.d.ts +1 -0
- package/dist/components/table/Table.d.ts +1 -0
- package/dist/components/table/TableBody.d.ts +1 -0
- package/dist/components/table/TableCell.d.ts +1 -0
- package/dist/components/table/TableFooter.d.ts +1 -0
- package/dist/components/table/TableFooterCell.d.ts +1 -0
- package/dist/components/table/TableHeader.d.ts +1 -0
- package/dist/components/table/TableHeaderCell.d.ts +1 -0
- package/dist/components/table/TableRow.d.ts +1 -0
- package/dist/components/tabs/TabTrigger.d.ts +1 -0
- package/dist/components/tabs/Tabs.d.ts +2 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +1 -0
- package/dist/components/text/Text.d.ts +1 -0
- package/dist/components/textarea/Textarea.d.ts +1 -0
- package/dist/components/toast/Toast.d.ts +1 -0
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +1 -0
- package/dist/components/toggle-group/index.d.ts +5 -0
- package/dist/components/tooltip/TooltipContent.d.ts +1 -0
- package/dist/components/video/Video.d.ts +2 -0
- package/dist/docgen.json +1 -1
- package/dist/docs/CheckboxField.mdx +1 -1
- package/dist/docs/DateField.mdx +2 -2
- package/dist/docs/FieldWrapper.mdx +1 -1
- package/dist/docs/Form.mdx +3 -3
- package/dist/docs/InlineMessage.mdx +52 -0
- package/dist/docs/InputField.mdx +2 -2
- package/dist/docs/RadioButtonField.mdx +2 -2
- package/dist/docs/SelectField.mdx +2 -2
- package/dist/docs/TextareaField.mdx +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.d.ts +10 -0
- package/package.json +3 -2
- package/dist/components/validation-error/ValidationError.d.ts +0 -7
- package/dist/components/validation-error/ValidationError.js +0 -1
- package/dist/components/validation-error/index.d.ts +0 -1
- package/dist/docs/ValidationError.mdx +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
# [2.
|
|
1
|
+
# [2.1.0](https://github.com/Atom-Learning/components/compare/v2.0.0...v2.1.0) (2022-09-09)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* align sizes to buttons ([4df4f1f](https://github.com/Atom-Learning/components/commit/4df4f1fbd8e1a2eaf6f26166a28086a70009a2c2))
|
|
8
|
-
* always base icon size on actionicon size ([2570aaa](https://github.com/Atom-Learning/components/commit/2570aaa26fa919355f33f7eb8fea5f16be6df787))
|
|
9
|
-
* attempting manual merge ([51a1c66](https://github.com/Atom-Learning/components/commit/51a1c666de0b6cad1c086bcc6efe1dd1f57ab47d))
|
|
10
|
-
* changing back missed icon size ([23348a3](https://github.com/Atom-Learning/components/commit/23348a3c3588329de9285aa9002ba77497ac0789))
|
|
11
|
-
* display px value in docs ([fe24ca0](https://github.com/Atom-Learning/components/commit/fe24ca09a74cdfd4c4e8d3fb3603f2c3b61e6c24))
|
|
12
|
-
* fixing type issue ([1510885](https://github.com/Atom-Learning/components/commit/1510885f5b0e97e75d48e8e1414e7b4324dc8ba6))
|
|
13
|
-
* further aligning with design after unintended change to icon ([1ccaf5e](https://github.com/Atom-Learning/components/commit/1ccaf5e087475411f194bd359a6567977c91b9af))
|
|
14
|
-
* merge in main ([52176f2](https://github.com/Atom-Learning/components/commit/52176f203441f96d4e8b702ca63d79db715d4242))
|
|
15
|
-
* moving logic into compound variants ([8567512](https://github.com/Atom-Learning/components/commit/85675123c43f7e4e0c71093163380e42a91fb3ed))
|
|
16
|
-
* moving to size map rather than compound variants ([ab10933](https://github.com/Atom-Learning/components/commit/ab10933dc308cc563dd11fe29245717705c1262b))
|
|
17
|
-
* retaining conditional logic on input fields ([72c1e52](https://github.com/Atom-Learning/components/commit/72c1e52562d4939b1a4cc10771d4885f1f2e55ce))
|
|
18
|
-
* updating mdx to remove unused prop ([94444f3](https://github.com/Atom-Learning/components/commit/94444f3aff999ad4b56216f47fda4e08464667db))
|
|
19
|
-
* updating snapshot ([59e1460](https://github.com/Atom-Learning/components/commit/59e14605b727eb6e46827dc8d524059dd0f6f658))
|
|
20
|
-
* updating snapshots after merge conflict ([8c0577a](https://github.com/Atom-Learning/components/commit/8c0577a4223936fdfbad6c2950798d7c9dbfcddc))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### BREAKING CHANGES
|
|
24
|
-
|
|
25
|
-
* { sizes for ActionIcon are going from sm-xl to xs-lg }
|
|
6
|
+
* inline message ([e973432](https://github.com/Atom-Learning/components/commit/e97343211f5ed65a53d3b82bba5157b3854161a5))
|
|
26
7
|
|
|
27
8
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
28
9
|
|
|
@@ -59,6 +59,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -326,6 +327,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
|
|
|
326
327
|
warning: any;
|
|
327
328
|
warningMid: any;
|
|
328
329
|
warningDark: any;
|
|
330
|
+
warningText: any;
|
|
329
331
|
subjectEnglish: any;
|
|
330
332
|
subjectMaths: any;
|
|
331
333
|
subjectScience: any;
|
|
@@ -58,6 +58,7 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
+
warningText: any;
|
|
61
62
|
subjectEnglish: any;
|
|
62
63
|
subjectMaths: any;
|
|
63
64
|
subjectScience: any;
|
|
@@ -322,6 +323,7 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
322
323
|
warning: any;
|
|
323
324
|
warningMid: any;
|
|
324
325
|
warningDark: any;
|
|
326
|
+
warningText: any;
|
|
325
327
|
subjectEnglish: any;
|
|
326
328
|
subjectMaths: any;
|
|
327
329
|
subjectScience: any;
|
|
@@ -62,6 +62,7 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
62
62
|
warning: any;
|
|
63
63
|
warningMid: any;
|
|
64
64
|
warningDark: any;
|
|
65
|
+
warningText: any;
|
|
65
66
|
subjectEnglish: any;
|
|
66
67
|
subjectMaths: any;
|
|
67
68
|
subjectScience: any;
|
|
@@ -328,6 +329,7 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
328
329
|
warning: any;
|
|
329
330
|
warningMid: any;
|
|
330
331
|
warningDark: any;
|
|
332
|
+
warningText: any;
|
|
331
333
|
subjectEnglish: any;
|
|
332
334
|
subjectMaths: any;
|
|
333
335
|
subjectScience: any;
|
|
@@ -64,6 +64,7 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
|
|
|
64
64
|
warning: any;
|
|
65
65
|
warningMid: any;
|
|
66
66
|
warningDark: any;
|
|
67
|
+
warningText: any;
|
|
67
68
|
subjectEnglish: any;
|
|
68
69
|
subjectMaths: any;
|
|
69
70
|
subjectScience: any;
|
|
@@ -333,6 +334,7 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
|
|
|
333
334
|
warning: any;
|
|
334
335
|
warningMid: any;
|
|
335
336
|
warningDark: any;
|
|
337
|
+
warningText: any;
|
|
336
338
|
subjectEnglish: any;
|
|
337
339
|
subjectMaths: any;
|
|
338
340
|
subjectScience: any;
|
|
@@ -62,6 +62,7 @@ export declare const EmptyStateImage: import("@stitches/react/types/styled-compo
|
|
|
62
62
|
warning: any;
|
|
63
63
|
warningMid: any;
|
|
64
64
|
warningDark: any;
|
|
65
|
+
warningText: any;
|
|
65
66
|
subjectEnglish: any;
|
|
66
67
|
subjectMaths: any;
|
|
67
68
|
subjectScience: any;
|
|
@@ -331,6 +332,7 @@ export declare const EmptyStateImage: import("@stitches/react/types/styled-compo
|
|
|
331
332
|
warning: any;
|
|
332
333
|
warningMid: any;
|
|
333
334
|
warningDark: any;
|
|
335
|
+
warningText: any;
|
|
334
336
|
subjectEnglish: any;
|
|
335
337
|
subjectMaths: any;
|
|
336
338
|
subjectScience: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Box as
|
|
1
|
+
import*as e from"react";import{Box as a}from"../box/Box.js";import{Flex as c}from"../flex/Flex.js";import{Label as f}from"../label/Label.js";import{Link as d}from"../link/Link.js";import{InlineMessage as b}from"../inline-message/InlineMessage.js";import{Description as E}from"./FieldDescription.js";const i=({css:o,children:l,error:t,fieldId:s,label:n,prompt:r,description:m,required:p})=>e.createElement(a,{css:o},e.createElement(c,{css:{justifyContent:"space-between",alignItems:"center",mb:"$3"}},e.createElement(f,{htmlFor:s,required:p},n),r&&e.createElement(d,{href:r.link,size:"sm"},r.label)),m&&e.createElement(E,{css:{mb:"$3"}},m),l,t&&e.createElement(b,{css:{mt:"$2"}},t));i.displayName="FieldWrapper";export{i as FieldWrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Box as
|
|
1
|
+
import*as e from"react";import{Box as o}from"../box/Box.js";import{Checkbox as d}from"../checkbox/Checkbox.js";import{Label as $}from"../label/Label.js";import{RadioButton as f}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";import{InlineMessage as u}from"../inline-message/InlineMessage.js";import{Description as E}from"./FieldDescription.js";const l=({align:n="start",children:a,css:s,description:i,direction:t="row",error:m,label:p,required:c})=>e.createElement(o,{css:s},e.createElement($,{align:n,direction:t,required:c,type:"inline"},e.Children.map(a,r=>e.createElement(o,{css:{[t==="reverse"?"ml":"mr"]:"$3",...((r==null?void 0:r.type)===d||(r==null?void 0:r.type)===f)&&{transform:"translateY($space$1)"}}},r)),p),m&&e.createElement(u,{css:{mt:"$2"}},m),i&&e.createElement(E,{css:{mt:"$2",[t==="reverse"?"mr":"ml"]:"calc($space$3 + $sizes$1)"}},i));l.displayName="InlineFieldWrapper";export{l as InlineFieldWrapper};
|
|
@@ -22,6 +22,7 @@ export { Grid } from './grid';
|
|
|
22
22
|
export { Heading } from './heading';
|
|
23
23
|
export { Icon } from './icon';
|
|
24
24
|
export { Image } from './image';
|
|
25
|
+
export { InlineMessage } from './inline-message';
|
|
25
26
|
export { Input } from './input';
|
|
26
27
|
export { FileInput } from './file-input';
|
|
27
28
|
export { InputField } from './input-field';
|
|
@@ -55,5 +56,4 @@ export { TextareaField } from './textarea-field';
|
|
|
55
56
|
export { ToastProvider, toast } from './toast';
|
|
56
57
|
export { ToggleGroup } from './toggle-group';
|
|
57
58
|
export { Tooltip } from './tooltip';
|
|
58
|
-
export { ValidationError } from './validation-error';
|
|
59
59
|
export { Video } from './video';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { InlineMessageTheme } from "./InlineMessage.types";
|
|
3
|
+
import type { CSS } from '../../stitches';
|
|
4
|
+
export declare const INLINE_MESSAGE_THEMES: Record<InlineMessageTheme, CSS>;
|
|
5
|
+
export declare const INLINE_MESSAGE_ICONS: Record<InlineMessageTheme, React.FC<React.SVGProps<SVGSVGElement>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{OkCircle as o,Danger as n,Info as r,Error as c}from"@atom-learning/icons";const e={success:{color:"$success"},warning:{color:"$warningText","& svg":{color:"$warningDark"}},info:{color:"$primary"},neutral:{color:"$tonal400"},error:{color:"$danger"}},a={success:o,warning:n,info:r,neutral:r,error:c};export{a as INLINE_MESSAGE_ICONS,e as INLINE_MESSAGE_THEMES};
|