Skip to content

Commit

Permalink
deploy: 49df1cb
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Jun 27, 2024
1 parent 793f18e commit 5f45c1f
Show file tree
Hide file tree
Showing 84 changed files with 307 additions and 289 deletions.
2 changes: 1 addition & 1 deletion assets/Action-CfxVqd4P.js → assets/Action-BJniBKiJ.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{j as m}from"./jsx-runtime-DoxjgJx5.js";import{S as c}from"./chat-Ce9sY079.js";import{S as d}from"./check-CXsFGzWm.js";import{S as u}from"./close-D55JIkKE.js";import{A as s}from"./Action-CfxVqd4P.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";import"./Text-TVAdXiC2.js";import"./index-v5u6b-Nk.js";import"./index-Cmw95SmN.js";import"./index-tFWdirwu.js";import"./index-BHpG8fra.js";import"./index-s2Ee__EW.js";import"./useId-D5m2XpUu.js";import"./Tooltip-BpTSfUbF.js";import"./floating-ui.react-D5UUZX8q.js";const i={chat:c,check:d,close:u},z={title:"Form/Controls/Action",component:s,tags:["autodocs"],parameters:{controls:{include:["onActionClick","defaultValue","placeholder","disabled","autoFocus","readOnly","invalid","actionLabel","Icon"]}},argTypes:{onActionClick:{action:"clicked"},defaultValue:{type:"string"},placeholder:{type:"string"},disabled:{type:"boolean"},autoFocus:{type:"boolean"},readOnly:{type:"boolean"},invalid:{type:"boolean"},actionLabel:{type:"string"},Icon:{options:Object.keys(i),mapping:i,defaultValue:"check",control:{type:"select"}}},render:({invalid:p,...l})=>m.jsx(s,{"data-invalid":p||void 0,...l}),args:{placeholder:"",autoFocus:!1,disabled:!1,readOnly:!1,invalid:!1,actionLabel:"Action",Icon:d}},e={parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=793-4477"}}},a={args:{defaultValue:"Filled"},parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=793-4536"}}},n={args:{defaultValue:"Disabled",disabled:!0},parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=793-4530"}}},o={args:{defaultValue:"Read only",readOnly:!0},parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=2126-21984"}}},r={args:{autoFocus:!0}},t={args:{defaultValue:"Invalid",invalid:!0},parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=793-4514"}}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
import{j as m}from"./jsx-runtime-DoxjgJx5.js";import{S as c}from"./chat-Ce9sY079.js";import{S as d}from"./check-CXsFGzWm.js";import{S as u}from"./close-D55JIkKE.js";import{A as s}from"./Action-BJniBKiJ.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";import"./Text-Cr8eyvvV.js";import"./index-BEd8YfQ8.js";import"./index-Cmw95SmN.js";import"./index-tFWdirwu.js";import"./index-BHpG8fra.js";import"./index-s2Ee__EW.js";import"./useId-D5m2XpUu.js";import"./Tooltip-BpTSfUbF.js";import"./floating-ui.react-D5UUZX8q.js";const i={chat:c,check:d,close:u},z={title:"Form/Controls/Action",component:s,tags:["autodocs"],parameters:{controls:{include:["onActionClick","defaultValue","placeholder","disabled","autoFocus","readOnly","invalid","actionLabel","Icon"]}},argTypes:{onActionClick:{action:"clicked"},defaultValue:{type:"string"},placeholder:{type:"string"},disabled:{type:"boolean"},autoFocus:{type:"boolean"},readOnly:{type:"boolean"},invalid:{type:"boolean"},actionLabel:{type:"string"},Icon:{options:Object.keys(i),mapping:i,defaultValue:"check",control:{type:"select"}}},render:({invalid:p,...l})=>m.jsx(s,{"data-invalid":p||void 0,...l}),args:{placeholder:"",autoFocus:!1,disabled:!1,readOnly:!1,invalid:!1,actionLabel:"Action",Icon:d}},e={parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=793-4477"}}},a={args:{defaultValue:"Filled"},parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=793-4536"}}},n={args:{defaultValue:"Disabled",disabled:!0},parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=793-4530"}}},o={args:{defaultValue:"Read only",readOnly:!0},parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=2126-21984"}}},r={args:{autoFocus:!0}},t={args:{defaultValue:"Invalid",invalid:!0},parameters:{design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=793-4514"}}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
parameters: {
design: {
type: "figma",
Expand Down
112 changes: 112 additions & 0 deletions assets/ActionButton.stories-CMnveZuC.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
import{j as f}from"./jsx-runtime-DoxjgJx5.js";import{f as B}from"./index-B-6fpdcS.js";import{S as k}from"./check-CXsFGzWm.js";import{S as y}from"./close-D55JIkKE.js";import{S as C,a as v,b as h,c as O,d as E,e as z,f as V,g as b,h as M,i as T,j as x}from"./video-call-solid-DZxiZyaz.js";import{S as A}from"./search-CWkX64tk.js";import{S as F}from"./visibility-on-BrkRTjSX.js";import{B as U}from"./Button-BPkQI5Wr.js";import"./Alert-CONg58U6.js";import"./Avatar-D_h5K73j.js";import"./AvatarStack-zKeD_o_3.js";import"./Badge-DhRzaND9.js";import"./IconButton-Dd7bS9VQ.js";import"./Search-BJ_nckf7.js";import"./Text-DCibjNNg.js";import"./ContextMenu-ylWaAsgi.js";import"./Glass-CwZVZZDo.js";import"./Heading-Bj7GMP5j.js";import"./IndicatorIcon-iinDG_Nf.js";import"./Link-Do2tSqaM.js";import"./Menu-DkWI44PW.js";import"./MenuItem-DP321Nyr.js";import"./Separator-D0l5BZ7R.js";import"./ToggleMenuItem-DCiOs_QO.js";import{T as _}from"./Tooltip-BpTSfUbF.js";import"./ReleaseAnnouncement-DiJEEtE4.js";import"./Toast-DiTTZX7x.js";import"./Action-BJniBKiJ.js";import"./Password-BL0bK9Cg.js";import"./Text-Cr8eyvvV.js";import"./MFA-Bg-QQaLT.js";import"./Checkbox-UWXrg9ui.js";import"./Radio-DnV3u_Pm.js";import"./Toggle-CCZdSH3V.js";/* empty css */import"./index-Cu9bd8lq.js";import"./index-CVRyq5ci.js";import"./index-C2KoGaFq.js";import"./UnstyledButton-CUaD5tB8.js";import"./Typography-D-74lRMS.js";import"./index-BEd8YfQ8.js";import"./index-Cmw95SmN.js";import"./index-tFWdirwu.js";import"./index-BHpG8fra.js";import"./index-s2Ee__EW.js";import"./InlineSpinner-CZEeBvQo.js";import"./useId-D5m2XpUu.js";import"./index-H3MR2rqV.js";import"./index-ChiipFpT.js";import"./FloatingMenu-BxFYcaYT.js";import"./DrawerMenu-BYj777Pr.js";import"./floating-ui.react-D5UUZX8q.js";const D=({label:L,...j})=>f.jsx(_,{label:L,children:f.jsx(U,{iconOnly:!0,...j})}),_r={title:"Button/Actions",component:D,tags:["autodocs"],argTypes:{label:{type:"string"},size:{options:["sm","lg"],control:{type:"inline-radio"}},kind:{options:["primary","secondary","tertiary"],control:{type:"inline-radio"}},destructive:{type:"boolean"},disabled:{type:"boolean"},as:{options:["a","button"],control:{type:"inline-radio"}},Icon:{options:["CheckIcon","CloseIcon","EditIcon","EndCallIcon","ExpandIcon","LinkIcon","MicOnSolidIcon","MicOffSolidIcon","SearchIcon","SettingsSolidIcon","ShareScreenSolidIcon","UserAddIcon","VideoCallOffSolidIcon","VideoCallSolidIcon","VisibilityOnIcon"],mapping:{CheckIcon:k,CloseIcon:y,EditIcon:C,EndCallIcon:v,ExpandIcon:h,LinkIcon:O,MicOnSolidIcon:E,MicOffSolidIcon:z,SearchIcon:A,SettingsSolidIcon:V,ShareScreenSolidIcon:b,UserAddIcon:M,VideoCallOffSolidIcon:T,VideoCallSolidIcon:x,VisibilityOnIcon:F},control:{type:"inline-radio"}},onClick:{action:"onClick"}},args:{label:"Action",size:"lg",as:"button",destructive:!1,disabled:!1,onClick:B()},controls:{exclude:["children"]}},r={args:{label:"Settings",kind:"secondary",Icon:V}},e={args:{label:"Copy link",kind:"secondary",Icon:O}},o={args:{label:"Turn video off",kind:"secondary",Icon:x}},n={args:{label:"Turn video on",kind:"primary",Icon:T}},a={args:{label:"Turn mic off",kind:"secondary",Icon:E}},s={args:{label:"Turn mic on",kind:"primary",Icon:z}},i={args:{label:"Share screen",kind:"secondary",Icon:b}},c={args:{label:"Stop sharing screen",kind:"primary",Icon:b}},t={args:{label:"Full screen",kind:"secondary",Icon:h}},l={args:{label:"End call",kind:"primary",destructive:!0,Icon:v}},d={args:{label:"Invite",kind:"primary",size:"sm",Icon:M}},m={args:{label:"Edit",kind:"primary",size:"sm",Icon:C}},p={args:{label:"Search",kind:"secondary",size:"sm",Icon:A}},S={args:{label:"Save",kind:"primary",size:"sm",Icon:k}},g={args:{label:"Save",kind:"primary",size:"sm",Icon:k,disabled:!0}},I={args:{label:"Cancel",kind:"secondary",size:"sm",Icon:y}},u={args:{label:"Close",kind:"secondary",size:"sm",Icon:y}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
args: {
label: "Settings",
kind: "secondary",
Icon: SettingsSolidIcon
}
}`,...r.parameters?.docs?.source}}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
args: {
label: "Copy link",
kind: "secondary",
Icon: LinkIcon
}
}`,...e.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
args: {
label: "Turn video off",
kind: "secondary",
Icon: VideoCallSolidIcon
}
}`,...o.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
args: {
label: "Turn video on",
kind: "primary",
Icon: VideoCallOffSolidIcon
}
}`,...n.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
args: {
label: "Turn mic off",
kind: "secondary",
Icon: MicOnSolidIcon
}
}`,...a.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
args: {
label: "Turn mic on",
kind: "primary",
Icon: MicOffSolidIcon
}
}`,...s.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
args: {
label: "Share screen",
kind: "secondary",
Icon: ShareScreenSolidIcon
}
}`,...i.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
args: {
label: "Stop sharing screen",
kind: "primary",
Icon: ShareScreenSolidIcon
}
}`,...c.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
args: {
label: "Full screen",
kind: "secondary",
Icon: ExpandIcon
}
}`,...t.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
args: {
label: "End call",
kind: "primary",
destructive: true,
Icon: EndCallIcon
}
}`,...l.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
args: {
label: "Invite",
kind: "primary",
size: "sm",
Icon: UserAddIcon
}
}`,...d.parameters?.docs?.source}}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
args: {
label: "Edit",
kind: "primary",
size: "sm",
Icon: EditIcon
}
}`,...m.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
args: {
label: "Search",
kind: "secondary",
size: "sm",
Icon: SearchIcon
}
}`,...p.parameters?.docs?.source}}};S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
args: {
label: "Save",
kind: "primary",
size: "sm",
Icon: CheckIcon
}
}`,...S.parameters?.docs?.source}}};g.parameters={...g.parameters,docs:{...g.parameters?.docs,source:{originalSource:`{
args: {
label: "Save",
kind: "primary",
size: "sm",
Icon: CheckIcon,
disabled: true
}
}`,...g.parameters?.docs?.source}}};I.parameters={...I.parameters,docs:{...I.parameters?.docs,source:{originalSource:`{
args: {
label: "Cancel",
kind: "secondary",
size: "sm",
Icon: CloseIcon
}
}`,...I.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
args: {
label: "Close",
kind: "secondary",
size: "sm",
Icon: CloseIcon
}
}`,...u.parameters?.docs?.source}}};const Dr=["Settings","ShareLink","VideoOn","VideoOff","MicOn","MicOff","ShareScreen","SharingScreen","Fullscreen","EndCall","Invite","Edit","Search","Save","SaveDisabled","Cancel","Close"];export{I as Cancel,u as Close,m as Edit,l as EndCall,t as Fullscreen,d as Invite,s as MicOff,a as MicOn,S as Save,g as SaveDisabled,p as Search,r as Settings,e as ShareLink,i as ShareScreen,c as SharingScreen,n as VideoOff,o as VideoOn,Dr as __namedExportsOrder,_r as default};
Loading

0 comments on commit 5f45c1f

Please sign in to comment.