@atom-learning/components 2.8.0 → 2.9.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/CHANGELOG.md CHANGED
@@ -1,24 +1,9 @@
1
- # [2.8.0](https://github.com/Atom-Learning/components/compare/v2.7.0...v2.8.0) (2022-10-19)
1
+ ## [2.9.1](https://github.com/Atom-Learning/components/compare/v2.9.0...v2.9.1) (2022-10-19)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * ActionIcon doc example ([aa335b6](https://github.com/Atom-Learning/components/commit/aa335b6cc0c350c4e5acef513ce12644b2e60c75))
7
- * add missing resizeobserver methods for tooltip tests ([c9b87ad](https://github.com/Atom-Learning/components/commit/c9b87adb770fcaaa529d08609304bb098cf206d2))
8
- * Dropdown snapshot ([3b5d2fe](https://github.com/Atom-Learning/components/commit/3b5d2fe47784052db55262cb78a7625c9e3b5a96))
9
- * Dropdown zIndex with no portal by default ([68b30a3](https://github.com/Atom-Learning/components/commit/68b30a3e6f3e7c8aceb22519935096909cd8e66d))
10
- * lib version ([7deff51](https://github.com/Atom-Learning/components/commit/7deff5116c8dfb08186ba6b70def85a11c3574d9))
11
- * popover test accessibility reqs ([be53de4](https://github.com/Atom-Learning/components/commit/be53de4278884cfb85787e6d564f19cb43de9e5f))
12
- * popover zIndex ([fe7e062](https://github.com/Atom-Learning/components/commit/fe7e062f4a936123b7c4796e86b58d45b6931fa6))
13
- * tooltip test ([90f4215](https://github.com/Atom-Learning/components/commit/90f4215251c8c449b656bbcdbe3305abcce25736))
14
- * tooltip zIndex ([d3a1bf9](https://github.com/Atom-Learning/components/commit/d3a1bf94716013044daf9cde962f18ef54385996))
15
- * wrap DataTable.Pagination with Tooltip.Provider in tests ([b4b4d13](https://github.com/Atom-Learning/components/commit/b4b4d13e8fb41458dc524e42a7bc30b2957049f6))
16
-
17
-
18
- ### Features
19
-
20
- * recover IdProvider changes ([d803a62](https://github.com/Atom-Learning/components/commit/d803a62d1f7574d1a377d20a69f68d8b6e364aa9))
21
- * update @radix-ui/react-tooltip to 1.0.0 ([d686d92](https://github.com/Atom-Learning/components/commit/d686d92c79a69ec277012c52fe08194c96faca52))
6
+ * remove superfluous props from TextareaField and SelectField components ([7bd300a](https://github.com/Atom-Learning/components/commit/7bd300ae7efd28a1019a84fb82c595648a9c88f0))
22
7
 
23
8
  # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
24
9
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const StyledTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>, {
3
- theme?: "primaryDark" | "light" | undefined;
3
+ theme?: "primaryDark" | "light" | "tonal" | undefined;
4
4
  }, {
5
5
  sm: string;
6
6
  md: string;
@@ -1 +1 @@
1
- import{ChevronDown as d}from"@atom-learning/icons";import{Trigger as f}from"@radix-ui/react-accordion";import{darken as r}from"color2k";import a from"react";import{styled as i,theme as n}from"../../stitches.js";import{Icon as l}from"../icon/Icon.js";const s=(e,t,o,m="#fff")=>({bg:e,color:m,"&[disabled]":{bg:"$tonal100",cursor:"not-allowed",color:"$tonal400"},"&:not([disabled]):hover":{bg:t},"&:not([disabled]):active":{bg:o}}),c=i(l,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),p=i(f,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"},variants:{theme:{primaryDark:s("$primaryDark",r(n.colors.primaryDark.value,.1),r(n.colors.primaryDark.value,.15)),light:s("#fff",r("#fff",.1),r("#fff",.15),"$tonal600")}}}),g=({theme:e="primaryDark",children:t,...o})=>a.createElement(p,{theme:e,...o},t,a.createElement(c,{is:d}));export{g as AccordionTrigger};
1
+ import{ChevronDown as s}from"@atom-learning/icons";import{Trigger as l}from"@radix-ui/react-accordion";import{darken as r}from"color2k";import n from"react";import{styled as i,theme as f}from"../../stitches.js";import{Icon as d}from"../icon/Icon.js";const a=(t,e,o,m="#fff")=>({bg:t,color:m,"&[disabled]":{bg:"$tonal100",cursor:"not-allowed",color:"$tonal400"},"&:not([disabled]):hover":{bg:e},"&:not([disabled]):active":{bg:o}}),p=i(d,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),c=i(l,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"},variants:{theme:{primaryDark:a("$primaryDark",r(f.colors.primaryDark.value,.1),r(f.colors.primaryDark.value,.15)),light:a("#fff",r("#fff",.1),r("#fff",.15),"$tonal600"),tonal:a("$tonal100",r("#fff",.1),r("#fff",.15),"$tonal500")}}}),g=({theme:t="primaryDark",children:e,...o})=>n.createElement(c,{theme:t,...o},e,n.createElement(p,{is:s}));export{g as AccordionTrigger};
@@ -2,13 +2,8 @@ import * as React from 'react';
2
2
  import { FieldWrapperProps } from '../../components/field-wrapper';
3
3
  import { ValidationOptions } from '../../components/form';
4
4
  import { SelectProps } from '../../components/select';
5
- declare type SelectFieldProps = SelectProps & FieldWrapperProps & {
6
- description?: string;
5
+ declare type SelectFieldProps = SelectProps & Omit<FieldWrapperProps, 'fieldId' | 'error'> & {
7
6
  name: string;
8
- prompt?: {
9
- link: string;
10
- label: string;
11
- };
12
7
  validation?: ValidationOptions;
13
8
  };
14
9
  export declare const SelectField: React.FC<SelectFieldProps>;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import type { FieldWrapperProps } from '../../components/field-wrapper';
3
3
  import { ValidationOptions } from '../../components/form';
4
4
  import { TextareaProps } from '../../components/textarea';
5
- declare type TextareaFieldProps = TextareaProps & FieldWrapperProps & {
5
+ declare type TextareaFieldProps = TextareaProps & Omit<FieldWrapperProps, 'fieldId' | 'error'> & {
6
6
  name: string;
7
7
  validation?: ValidationOptions;
8
8
  };