[breaking]: FreeSewing v4 (#7297)
Refer to the CHANGELOG for all info. --------- Co-authored-by: Wouter van Wageningen <wouter.vdub@yahoo.com> Co-authored-by: Josh Munic <jpmunic@gmail.com> Co-authored-by: Jonathan Haas <haasjona@gmail.com>
This commit is contained in:
parent
d22fbe78d9
commit
51dc1d9732
6626 changed files with 142053 additions and 150606 deletions
35
packages/react/components/Mini/index.mjs
Normal file
35
packages/react/components/Mini/index.mjs
Normal file
|
@ -0,0 +1,35 @@
|
|||
import React from 'react'
|
||||
import { TipIcon, ChatIcon, WarningIcon } from '@freesewing/react/components/Icon'
|
||||
|
||||
export const MiniTip = ({ children }) => (
|
||||
<div className="tw-flex tw-flex-row tw-border tw-border-success tw-rounded">
|
||||
<div className="tw-bg-success tw-text-success-content tw-p-1 tw-rounded-l tw-flex tw-flex-row tw-items-center">
|
||||
<TipIcon className="tw-w-6 tw-h-6 tw-text-success-content" />
|
||||
</div>
|
||||
<div className="tw-p-1 tw-px-2 tw-text-sm tw-font-medium tw-bg-success/10 tw-grow tw-rounded-r">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
export const MiniNote = ({ children }) => (
|
||||
<div className="tw-flex tw-flex-row tw-border tw-border-info tw-rounded">
|
||||
<div className="tw-bg-info tw-text-info-content tw-p-1 tw-rounded-l tw-flex tw-flex-row tw-items-center">
|
||||
<ChatIcon className="tw-w-6 tw-h-6 tw-text-info-content" />
|
||||
</div>
|
||||
<div className="tw-p-1 tw-px-2 tw-text-sm tw-font-medium tw-bg-info/10 tw-grow tw-rounded-r">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
export const MiniWarning = ({ children }) => (
|
||||
<div className="tw-flex tw-flex-row tw-border tw-border-warning tw-rounded">
|
||||
<div className="tw-bg-warning tw-text-warning-content tw-p-1 tw-rounded-l tw-flex tw-flex-row tw-items-center">
|
||||
<WarningIcon className="tw-w-6 tw-h-6 tw-text-warning-content" />
|
||||
</div>
|
||||
<div className="tw-p-1 tw-px-2 tw-text-sm tw-font-medium tw-bg-warning/10 tw-grow tw-rounded-r">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue