@atom-learning/components 1.7.2 → 1.7.5
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 +2 -2
- package/dist/components/file-input/FileInput.d.ts +5 -5
- package/dist/components/file-input/FileInput.js +1 -1
- package/dist/components/form/Form.types.d.ts +1 -1
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/slider-field/SliderField.d.ts +1 -1
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## [1.7.
|
|
1
|
+
## [1.7.5](https://github.com/Atom-Learning/components/compare/v1.7.4...v1.7.5) (2022-04-14)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* onSelect prop name clashing with the built-in React onSelect event ([8aa2b42](https://github.com/Atom-Learning/components/commit/8aa2b42184c5c4470f3b855ad15a3b79698b212f))
|
|
7
7
|
|
|
8
8
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare type FileInputProps = React.
|
|
2
|
+
import { Button } from '../button';
|
|
3
|
+
export declare type FileInputProps = React.ComponentProps<typeof Button> & {
|
|
4
|
+
onFileSelect: (selection: FileList | null) => void;
|
|
4
5
|
accept?: string;
|
|
5
6
|
multiple?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const FileInput: FileInputProps;
|
|
7
|
+
};
|
|
8
|
+
export declare const FileInput: React.FC<FileInputProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Upload as s}from"@atom-learning/icons";import{createElement as e}from"react";import{Button as f}from"../button/Button.js";import{Icon as c}from"../icon/Icon.js";const t=({accept:o,children:n,multiple:r=!1,onFileSelect:i,...l})=>{const p=a=>{const{files:m}=a.target;i(m)};return e(f,{as:"label",...l},e(c,{is:s}),n,e("input",{type:"file",onChange:p,accept:o,multiple:r,hidden:!0}))};t.displayName="FileInput";export{t as FileInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{
|
|
1
|
+
import e from"react";import{styled as o}from"../../stitches.js";import{Box as i}from"../box/Box.js";import{Flex as n}from"../flex/Flex.js";const l=o(i,{position:"relative"}),a=o(n,{fontFamily:"$body",fontSize:"$sm",flexDirection:"column",justifyContent:"center",position:"absolute",top:"0",right:"0",transform:"translate(calc($sizes$2 / 2), -50%)",borderRadius:"$round",p:"$2",height:"$2",minWidth:"$2",textAlign:"center",color:"#fff",bg:"$primary"}),m=({value:t,children:r})=>e.createElement(l,null,!!t&&e.createElement(a,{role:"status"},t),r);export{m as NotificationBadge};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SliderProps } from '../../components/slider';
|
|
3
3
|
import { SliderStepsType } from '../../components/slider/SliderSteps';
|
|
4
|
-
import { SliderValueType } from '../slider/SliderValue';
|
|
5
4
|
import type { CSS } from '../../stitches';
|
|
5
|
+
import { SliderValueType } from '../slider/SliderValue';
|
|
6
6
|
declare type SliderFieldProps = SliderProps & SliderStepsType & SliderValueType & {
|
|
7
7
|
css?: CSS;
|
|
8
8
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as
|
|
1
|
+
import t from"react";import{styled as i}from"../../stitches.js";import{TableHeaderCell as r}from"./TableHeaderCell.js";const l=i("thead",{variants:{theme:{primary:{[`${r}`]:{bg:"$primary"}},primaryDark:{[`${r}`]:{bg:"$primaryDark"}}}}}),e=({theme:a="primaryDark",...m})=>t.createElement(l,{theme:a,...m});e.displayName="TableHeader";export{e as TableHeader};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TabTrigger } from './TabTrigger';
|
|
3
2
|
import { TriggerListWrapper } from './TabsTriggerList';
|
|
3
|
+
import { TabTrigger } from './TabTrigger';
|
|
4
4
|
declare type TabsProps = React.ComponentProps<typeof StyledRoot>;
|
|
5
5
|
declare const StyledRoot: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsProps & React.RefAttributes<HTMLDivElement>>, {
|
|
6
6
|
theme?: "dark" | "light" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as m,Content as n}from"@radix-ui/react-tabs";import{createElement as p}from"react";import{styled as t}from"../../stitches.js";import{
|
|
1
|
+
import{Root as m,Content as n}from"@radix-ui/react-tabs";import{createElement as p}from"react";import{styled as t}from"../../stitches.js";import{TriggerListWrapper as e}from"./TabsTriggerList.js";import{TabTrigger as s}from"./TabTrigger.js";import{passPropsToChildren as g}from"./utils.js";const c=t(m,{display:"flex",flexDirection:"column",variants:{theme:{light:{color:"$primary"},dark:{color:"white"}}}}),i=t(n,{flexGrow:1,fontFamily:"$body",variants:{theme:{light:{color:"$textForeground"},dark:{bg:"$primaryDark",color:"white"}}}}),r=({theme:o="light",children:a,...l})=>p(c,{theme:o,...l},g(a,{theme:o},[e,i]));r.TriggerList=e,r.Trigger=s,r.Content=i,r.displayName="Tabs";export{r as Tabs};
|