@sikka/hawa 0.0.264 → 0.0.266
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/dist/styles.css +77 -10
- package/es/elements/HawaAlert.d.ts +2 -0
- package/es/elements/HawaButton.d.ts +3 -1
- package/es/elements/HawaCodeBlock.d.ts +1 -0
- package/es/elements/HawaInlineCode.d.ts +6 -0
- package/es/elements/Timeline.d.ts +13 -0
- package/es/elements/index.d.ts +6 -4
- package/es/index.es.js +3 -3
- package/es/layout/HawaAppLayoutSimplified.d.ts +2 -0
- package/lib/elements/HawaAlert.d.ts +2 -0
- package/lib/elements/HawaButton.d.ts +3 -1
- package/lib/elements/HawaCodeBlock.d.ts +1 -0
- package/lib/elements/HawaInlineCode.d.ts +6 -0
- package/lib/elements/Timeline.d.ts +13 -0
- package/lib/elements/index.d.ts +6 -4
- package/lib/index.js +3 -3
- package/lib/layout/HawaAppLayoutSimplified.d.ts +2 -0
- package/package.json +2 -1
- package/src/elements/HawaAlert.tsx +73 -51
- package/src/elements/HawaButton.tsx +97 -49
- package/src/elements/HawaCodeBlock.tsx +68 -19
- package/src/elements/HawaInlineCode.tsx +9 -0
- package/src/elements/HawaMenu.tsx +2 -2
- package/src/elements/Timeline.tsx +35 -0
- package/src/elements/index.ts +6 -4
- package/src/layout/HawaAppLayoutSimplified.tsx +98 -82
- package/src/styles.css +77 -10
- package/src/tailwind.css +18 -0
- package/es/stories/ElementsStories/Buttons.stories.d.ts +0 -24
- package/lib/stories/ElementsStories/Buttons.stories.d.ts +0 -24
package/src/elements/index.ts
CHANGED
|
@@ -13,8 +13,6 @@ export * from "./HawaTable"
|
|
|
13
13
|
export * from "./HawaColorPicker"
|
|
14
14
|
export * from "./HawaSearchBar"
|
|
15
15
|
export * from "./HawaAccordion"
|
|
16
|
-
export * from "./DragDropImages"
|
|
17
|
-
export * from "./DraggableCard"
|
|
18
16
|
export * from "./HawaPhoneInput"
|
|
19
17
|
export * from "./HawaTooltip"
|
|
20
18
|
export * from "./HawaTabs"
|
|
@@ -22,22 +20,26 @@ export * from "./HawaModal"
|
|
|
22
20
|
export * from "./HawaMenu"
|
|
23
21
|
export * from "./HawaCopyrights"
|
|
24
22
|
export * from "./HawaStepper"
|
|
25
|
-
export * from "./Breadcrumb"
|
|
26
23
|
export * from "./HawaStats"
|
|
27
24
|
export * from "./HawaCodeBlock"
|
|
28
25
|
export * from "./HawaSpinner"
|
|
29
26
|
export * from "./HawaRadio"
|
|
30
27
|
export * from "./HawaDrawer"
|
|
28
|
+
export * from "./HawaDatepicker"
|
|
29
|
+
export * from "./DragDropImages"
|
|
30
|
+
export * from "./DraggableCard"
|
|
31
|
+
export * from "./Breadcrumb"
|
|
31
32
|
export * from "./SubsectionList"
|
|
32
33
|
export * from "./UsageCard"
|
|
33
34
|
export * from "./InvoiceAccordion"
|
|
34
|
-
export * from "./HawaDatepicker"
|
|
35
35
|
export * from "./UserFeedback"
|
|
36
36
|
export * from "./ArrowCarousel"
|
|
37
37
|
export * from "./FloatingComment"
|
|
38
38
|
export * from "./FloatingCommentSlate"
|
|
39
39
|
export * from "./FloatingCommentExec"
|
|
40
40
|
export * from "./BackToTop"
|
|
41
|
+
export * from "./HawaInlineCode"
|
|
42
|
+
export * from "./Timeline"
|
|
41
43
|
// Inputs
|
|
42
44
|
export * from "./HawaTextField"
|
|
43
45
|
export * from "./HawaCardInput"
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from "react"
|
|
2
2
|
import clsx from "clsx"
|
|
3
3
|
import { HiMenu } from "react-icons/hi"
|
|
4
|
-
import { FaChevronRight } from "react-icons/fa"
|
|
5
4
|
import useDiscloser from "../hooks/useDiscloser"
|
|
6
5
|
import useBreakpoint from "../hooks/useBreakpoint"
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
// TODO: when no pagetitle, navbar gets messy
|
|
6
|
+
import { HawaMenu } from "../elements"
|
|
10
7
|
|
|
11
8
|
type HawaAppLayoutTypes = {
|
|
9
|
+
/** The pages of the side drawer */
|
|
12
10
|
drawerItems: {
|
|
13
11
|
label: string
|
|
14
12
|
icon: any
|
|
@@ -16,7 +14,9 @@ type HawaAppLayoutTypes = {
|
|
|
16
14
|
action: () => void
|
|
17
15
|
subItems?: any
|
|
18
16
|
}[][]
|
|
17
|
+
// The direction of the layout
|
|
19
18
|
direction?: "rtl" | "ltr"
|
|
19
|
+
// The title of the current selected page, make sure it's the same as the drawerItem slug
|
|
20
20
|
currentPage: string
|
|
21
21
|
pageTitle?: string
|
|
22
22
|
logoSymbol?: any
|
|
@@ -29,6 +29,7 @@ type HawaAppLayoutTypes = {
|
|
|
29
29
|
drawerSize?: "sm" | "md" | "large"
|
|
30
30
|
profileMenuItems?: MenuItems[][]
|
|
31
31
|
onSettingsClick?: () => void
|
|
32
|
+
DrawerFooterActions: any
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
type MenuItems = {
|
|
@@ -39,7 +40,13 @@ type MenuItems = {
|
|
|
39
40
|
}
|
|
40
41
|
export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
41
42
|
HawaAppLayoutTypes
|
|
42
|
-
> = ({
|
|
43
|
+
> = ({
|
|
44
|
+
direction = "rtl",
|
|
45
|
+
drawerSize = "md",
|
|
46
|
+
onSettingsClick,
|
|
47
|
+
DrawerFooterActions,
|
|
48
|
+
...props
|
|
49
|
+
}) => {
|
|
43
50
|
const [openSideMenu, setOpenSideMenu] = useState(false)
|
|
44
51
|
const [openSubItem, setOpenSubitem] = useState("")
|
|
45
52
|
const { isOpen, onClose, onOpen } = useDiscloser(false)
|
|
@@ -92,35 +99,32 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
92
99
|
>
|
|
93
100
|
{/* Nav Side Of Navbar */}
|
|
94
101
|
{size > 600 ? (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
{props.pageTitle}
|
|
122
|
-
</div>
|
|
123
|
-
) : null
|
|
102
|
+
<div
|
|
103
|
+
className={clsx(
|
|
104
|
+
isRTL
|
|
105
|
+
? [size > 600 ? "mr-14" : "mr-2", keepOpen ? "mr-40" : ""]
|
|
106
|
+
: [size > 600 ? "ml-14" : "ml-2", keepOpen ? "ml-40" : ""]
|
|
107
|
+
)}
|
|
108
|
+
style={
|
|
109
|
+
isRTL
|
|
110
|
+
? {
|
|
111
|
+
marginRight: `${
|
|
112
|
+
drawerSizeStyle[keepOpen ? "opened" : "closed"][
|
|
113
|
+
drawerSize
|
|
114
|
+
]
|
|
115
|
+
}px`,
|
|
116
|
+
}
|
|
117
|
+
: {
|
|
118
|
+
marginLeft: `${
|
|
119
|
+
drawerSizeStyle[keepOpen ? "opened" : "closed"][
|
|
120
|
+
drawerSize
|
|
121
|
+
]
|
|
122
|
+
}px`,
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
>
|
|
126
|
+
{props.pageTitle}
|
|
127
|
+
</div>
|
|
124
128
|
) : (
|
|
125
129
|
// Mobile Drawer Menu Button
|
|
126
130
|
<div
|
|
@@ -147,14 +151,11 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
147
151
|
"flex gap-2",
|
|
148
152
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
149
153
|
)}
|
|
150
|
-
// dir={direction}
|
|
151
154
|
>
|
|
152
155
|
{/* User Info */}
|
|
153
156
|
{size > 600 ? (
|
|
154
157
|
<div
|
|
155
|
-
className={
|
|
156
|
-
isRTL ? "text-left text-xs" : "text-right text-xs"
|
|
157
|
-
)}
|
|
158
|
+
className={isRTL ? "text-left text-xs" : "text-right text-xs"}
|
|
158
159
|
>
|
|
159
160
|
<div className="font-bold">{props.username}</div>{" "}
|
|
160
161
|
<div>{props.email}</div>
|
|
@@ -187,9 +188,6 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
187
188
|
<div
|
|
188
189
|
className={clsx(
|
|
189
190
|
"fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip transition-all",
|
|
190
|
-
// drawerDefaultStyle,
|
|
191
|
-
// "bg-green-400",
|
|
192
|
-
// drawerSizeStyle[drawerSize],
|
|
193
191
|
isRTL ? "right-0" : "left-0"
|
|
194
192
|
)}
|
|
195
193
|
style={{
|
|
@@ -298,8 +296,9 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
298
296
|
)
|
|
299
297
|
? "bg-buttonPrimary-500 text-white"
|
|
300
298
|
: "hover:bg-layoutPrimary-300",
|
|
301
|
-
"
|
|
302
|
-
isRTL ? "flex-row-reverse pr-3" : ""
|
|
299
|
+
"my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",
|
|
300
|
+
isRTL ? "flex-row-reverse pr-3" : "",
|
|
301
|
+
openSideMenu ? "m-2" : "m-2"
|
|
303
302
|
)}
|
|
304
303
|
>
|
|
305
304
|
<div className="flex flex-row" dir={direction}>
|
|
@@ -316,22 +315,20 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
316
315
|
</div>
|
|
317
316
|
</div>
|
|
318
317
|
{dItem.subItems && (
|
|
319
|
-
<
|
|
320
|
-
|
|
318
|
+
<ArrowIcon
|
|
319
|
+
pointing={
|
|
321
320
|
openSubItem && dItem.slug === openSubItem
|
|
322
|
-
? "
|
|
323
|
-
: "
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
{/* <FaChevronRight fontSize={11} /> */}
|
|
327
|
-
</div>
|
|
321
|
+
? "up"
|
|
322
|
+
: "down"
|
|
323
|
+
}
|
|
324
|
+
/>
|
|
328
325
|
)}
|
|
329
326
|
</div>
|
|
330
327
|
|
|
331
328
|
{dItem.subItems && (
|
|
332
329
|
<div
|
|
333
330
|
className={clsx(
|
|
334
|
-
"m-1 flex cursor-pointer flex-col gap-0 overflow-clip whitespace-nowrap rounded bg-layoutPrimary-300 p-1 transition-all",
|
|
331
|
+
"m-1 mx-2 flex cursor-pointer flex-col gap-0 overflow-clip whitespace-nowrap rounded bg-layoutPrimary-300 p-1 transition-all",
|
|
335
332
|
openSubItem == dItem.slug && openSideMenu
|
|
336
333
|
? ""
|
|
337
334
|
: "my-0 py-0",
|
|
@@ -348,7 +345,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
348
345
|
<div
|
|
349
346
|
key={s}
|
|
350
347
|
className={clsx(
|
|
351
|
-
"flex flex-row gap-2 overflow-x-clip rounded p-2 px-2 text-xs",
|
|
348
|
+
"flex flex-row gap-2 overflow-x-clip rounded-inner p-2 px-2 text-xs",
|
|
352
349
|
isRTL ? "text-right" : "text-left",
|
|
353
350
|
props.currentPage === subIt.slug
|
|
354
351
|
? "bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500"
|
|
@@ -381,7 +378,11 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
381
378
|
</div>
|
|
382
379
|
{/* Drawer Footer */}
|
|
383
380
|
<div
|
|
384
|
-
className=
|
|
381
|
+
className={clsx(
|
|
382
|
+
"fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 bg-layoutPrimary-500 transition-all",
|
|
383
|
+
|
|
384
|
+
direction === "rtl" ? "flex-row-reverse" : "flex-row"
|
|
385
|
+
)}
|
|
385
386
|
style={{
|
|
386
387
|
width:
|
|
387
388
|
size > 600
|
|
@@ -389,19 +390,14 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
389
390
|
: `${openSideMenu ? 160 : 0}px`,
|
|
390
391
|
}}
|
|
391
392
|
>
|
|
392
|
-
{
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
>
|
|
397
|
-
<SettingsIcon />
|
|
398
|
-
</div>
|
|
399
|
-
)}
|
|
393
|
+
{size > 600 && DrawerFooterActions && openSideMenu ? (
|
|
394
|
+
<>{DrawerFooterActions}</>
|
|
395
|
+
) : null}
|
|
396
|
+
|
|
400
397
|
{/* Expand Button */}
|
|
401
|
-
{size > 600 ? (
|
|
398
|
+
{size > 600 && openSideMenu ? (
|
|
402
399
|
<div
|
|
403
400
|
className={clsx("w-fit transition-all")}
|
|
404
|
-
// style={isRTL ? {} : {left: }}
|
|
405
401
|
style={
|
|
406
402
|
isRTL
|
|
407
403
|
? {
|
|
@@ -430,7 +426,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
430
426
|
<div
|
|
431
427
|
onClick={() => setKeepOpen(!keepOpen)}
|
|
432
428
|
className={
|
|
433
|
-
"w-fit cursor-pointer rounded bg-gray-300 p-
|
|
429
|
+
"w-fit cursor-pointer rounded bg-gray-300 p-1 transition-all hover:bg-gray-400"
|
|
434
430
|
}
|
|
435
431
|
>
|
|
436
432
|
<ArrowIcon
|
|
@@ -454,7 +450,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
454
450
|
|
|
455
451
|
{/* Children Container */}
|
|
456
452
|
<div
|
|
457
|
-
className="fixed overflow-y-auto
|
|
453
|
+
className="fixed overflow-y-auto"
|
|
458
454
|
style={
|
|
459
455
|
isRTL
|
|
460
456
|
? {
|
|
@@ -492,22 +488,42 @@ const AvatarIcon = () => (
|
|
|
492
488
|
</svg>
|
|
493
489
|
)
|
|
494
490
|
|
|
495
|
-
const ArrowIcon = ({ pointing }) =>
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
491
|
+
const ArrowIcon = ({ pointing }) => {
|
|
492
|
+
let directionStyle
|
|
493
|
+
switch (pointing) {
|
|
494
|
+
case "right":
|
|
495
|
+
directionStyle = "-rotate-90"
|
|
496
|
+
break
|
|
497
|
+
case "left":
|
|
498
|
+
directionStyle = "rotate-90"
|
|
499
|
+
break
|
|
500
|
+
case "up":
|
|
501
|
+
directionStyle = "-rotate-180"
|
|
502
|
+
break
|
|
503
|
+
case "down":
|
|
504
|
+
directionStyle = "rotate-0"
|
|
505
|
+
break
|
|
506
|
+
|
|
507
|
+
default:
|
|
508
|
+
break
|
|
509
|
+
}
|
|
510
|
+
return (
|
|
511
|
+
<svg
|
|
512
|
+
className={clsx(
|
|
513
|
+
"h-6 w-6 shrink-0 transition-all disabled:bg-gray-200",
|
|
514
|
+
directionStyle
|
|
515
|
+
)}
|
|
516
|
+
viewBox="0 0 20 20"
|
|
517
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
518
|
+
>
|
|
519
|
+
<path
|
|
520
|
+
fillRule="evenodd"
|
|
521
|
+
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
|
522
|
+
clipRule="evenodd"
|
|
523
|
+
></path>
|
|
524
|
+
</svg>
|
|
525
|
+
)
|
|
526
|
+
}
|
|
511
527
|
|
|
512
528
|
const SettingsIcon = () => (
|
|
513
529
|
<svg
|
package/src/styles.css
CHANGED
|
@@ -403,6 +403,24 @@ video {
|
|
|
403
403
|
var(--border-radius) - calc(var(--border-radius) / 3)
|
|
404
404
|
);
|
|
405
405
|
}
|
|
406
|
+
|
|
407
|
+
.inline-code {
|
|
408
|
+
font-size: 0.75rem;
|
|
409
|
+
/* color: theme("colors.slate.500"); */
|
|
410
|
+
/* background-color: theme("colors.stone.100"); */
|
|
411
|
+
border-radius: var(--border-radius);
|
|
412
|
+
/* padding-left: theme("spacing[1.5]");
|
|
413
|
+
padding-right: theme("spacing[1.5]");
|
|
414
|
+
padding-top: theme("spacing.1");
|
|
415
|
+
padding-bottom: theme("spacing.1"); */
|
|
416
|
+
padding: 0.25rem 0.375rem;
|
|
417
|
+
/* margin: theme("spacing.0") theme("spacing.1"); */
|
|
418
|
+
|
|
419
|
+
border: #d1d5db 1px solid;
|
|
420
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
421
|
+
Liberation Mono, Courier New, monospace;
|
|
422
|
+
}
|
|
423
|
+
|
|
406
424
|
input[type="number"]::-webkit-inner-spin-button,
|
|
407
425
|
input[type="number"]::-webkit-outer-spin-button {
|
|
408
426
|
-webkit-appearance: none;
|
|
@@ -597,6 +615,9 @@ video {
|
|
|
597
615
|
.-left-1 {
|
|
598
616
|
left: -0.25rem;
|
|
599
617
|
}
|
|
618
|
+
.-left-1\.5 {
|
|
619
|
+
left: -0.375rem;
|
|
620
|
+
}
|
|
600
621
|
.-right-10 {
|
|
601
622
|
right: -2.5rem;
|
|
602
623
|
}
|
|
@@ -769,6 +790,9 @@ video {
|
|
|
769
790
|
.ml-3 {
|
|
770
791
|
margin-left: 0.75rem;
|
|
771
792
|
}
|
|
793
|
+
.ml-4 {
|
|
794
|
+
margin-left: 1rem;
|
|
795
|
+
}
|
|
772
796
|
.ml-40 {
|
|
773
797
|
margin-left: 10rem;
|
|
774
798
|
}
|
|
@@ -820,6 +844,9 @@ video {
|
|
|
820
844
|
.mt-1 {
|
|
821
845
|
margin-top: 0.25rem;
|
|
822
846
|
}
|
|
847
|
+
.mt-1\.5 {
|
|
848
|
+
margin-top: 0.375rem;
|
|
849
|
+
}
|
|
823
850
|
.mt-14 {
|
|
824
851
|
margin-top: 3.5rem;
|
|
825
852
|
}
|
|
@@ -973,6 +1000,9 @@ video {
|
|
|
973
1000
|
.max-h-full {
|
|
974
1001
|
max-height: 100%;
|
|
975
1002
|
}
|
|
1003
|
+
.min-h-\[37\.75px\] {
|
|
1004
|
+
min-height: 37.75px;
|
|
1005
|
+
}
|
|
976
1006
|
.w-0 {
|
|
977
1007
|
width: 0px;
|
|
978
1008
|
}
|
|
@@ -1145,10 +1175,22 @@ video {
|
|
|
1145
1175
|
--tw-translate-y: -50%;
|
|
1146
1176
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1147
1177
|
}
|
|
1178
|
+
.-translate-y-8 {
|
|
1179
|
+
--tw-translate-y: -2rem;
|
|
1180
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1181
|
+
}
|
|
1182
|
+
.translate-y-0 {
|
|
1183
|
+
--tw-translate-y: 0px;
|
|
1184
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1185
|
+
}
|
|
1148
1186
|
.translate-y-1\/2 {
|
|
1149
1187
|
--tw-translate-y: 50%;
|
|
1150
1188
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1151
1189
|
}
|
|
1190
|
+
.-rotate-180 {
|
|
1191
|
+
--tw-rotate: -180deg;
|
|
1192
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1193
|
+
}
|
|
1152
1194
|
.-rotate-90 {
|
|
1153
1195
|
--tw-rotate: -90deg;
|
|
1154
1196
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -1217,6 +1259,9 @@ video {
|
|
|
1217
1259
|
.flex-col {
|
|
1218
1260
|
flex-direction: column;
|
|
1219
1261
|
}
|
|
1262
|
+
.flex-col-reverse {
|
|
1263
|
+
flex-direction: column-reverse;
|
|
1264
|
+
}
|
|
1220
1265
|
.flex-wrap {
|
|
1221
1266
|
flex-wrap: wrap;
|
|
1222
1267
|
}
|
|
@@ -1533,6 +1578,10 @@ video {
|
|
|
1533
1578
|
--tw-border-opacity: 1;
|
|
1534
1579
|
border-color: rgb(75 85 99 / var(--tw-border-opacity));
|
|
1535
1580
|
}
|
|
1581
|
+
.border-gray-900 {
|
|
1582
|
+
--tw-border-opacity: 1;
|
|
1583
|
+
border-color: rgb(17 24 39 / var(--tw-border-opacity));
|
|
1584
|
+
}
|
|
1536
1585
|
.border-green-300 {
|
|
1537
1586
|
--tw-border-opacity: 1;
|
|
1538
1587
|
border-color: rgb(134 239 172 / var(--tw-border-opacity));
|
|
@@ -1593,6 +1642,9 @@ video {
|
|
|
1593
1642
|
.bg-buttonPrimary-500 {
|
|
1594
1643
|
background-color: var(--button-primary-500);
|
|
1595
1644
|
}
|
|
1645
|
+
.bg-buttonSecondary-500 {
|
|
1646
|
+
background-color: var(--button-secondary-500);
|
|
1647
|
+
}
|
|
1596
1648
|
.bg-cyan-800 {
|
|
1597
1649
|
--tw-bg-opacity: 1;
|
|
1598
1650
|
background-color: rgb(21 94 117 / var(--tw-bg-opacity));
|
|
@@ -1645,10 +1697,6 @@ video {
|
|
|
1645
1697
|
--tw-bg-opacity: 1;
|
|
1646
1698
|
background-color: rgb(134 239 172 / var(--tw-bg-opacity));
|
|
1647
1699
|
}
|
|
1648
|
-
.bg-green-400 {
|
|
1649
|
-
--tw-bg-opacity: 1;
|
|
1650
|
-
background-color: rgb(74 222 128 / var(--tw-bg-opacity));
|
|
1651
|
-
}
|
|
1652
1700
|
.bg-green-500 {
|
|
1653
1701
|
--tw-bg-opacity: 1;
|
|
1654
1702
|
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
|
|
@@ -1833,6 +1881,9 @@ video {
|
|
|
1833
1881
|
.pb-0 {
|
|
1834
1882
|
padding-bottom: 0px;
|
|
1835
1883
|
}
|
|
1884
|
+
.pb-1 {
|
|
1885
|
+
padding-bottom: 0.25rem;
|
|
1886
|
+
}
|
|
1836
1887
|
.pb-2 {
|
|
1837
1888
|
padding-bottom: 0.5rem;
|
|
1838
1889
|
}
|
|
@@ -1848,9 +1899,6 @@ video {
|
|
|
1848
1899
|
.pl-3 {
|
|
1849
1900
|
padding-left: 0.75rem;
|
|
1850
1901
|
}
|
|
1851
|
-
.pl-4 {
|
|
1852
|
-
padding-left: 1rem;
|
|
1853
|
-
}
|
|
1854
1902
|
.pl-6 {
|
|
1855
1903
|
padding-left: 1.5rem;
|
|
1856
1904
|
}
|
|
@@ -1860,12 +1908,12 @@ video {
|
|
|
1860
1908
|
.pr-3 {
|
|
1861
1909
|
padding-right: 0.75rem;
|
|
1862
1910
|
}
|
|
1863
|
-
.pr-4 {
|
|
1864
|
-
padding-right: 1rem;
|
|
1865
|
-
}
|
|
1866
1911
|
.pt-0 {
|
|
1867
1912
|
padding-top: 0px;
|
|
1868
1913
|
}
|
|
1914
|
+
.pt-1 {
|
|
1915
|
+
padding-top: 0.25rem;
|
|
1916
|
+
}
|
|
1869
1917
|
.pt-2 {
|
|
1870
1918
|
padding-top: 0.5rem;
|
|
1871
1919
|
}
|
|
@@ -1921,6 +1969,10 @@ video {
|
|
|
1921
1969
|
.text-\[9px\] {
|
|
1922
1970
|
font-size: 9px;
|
|
1923
1971
|
}
|
|
1972
|
+
.text-base {
|
|
1973
|
+
font-size: 1rem;
|
|
1974
|
+
line-height: 1.5rem;
|
|
1975
|
+
}
|
|
1924
1976
|
.text-lg {
|
|
1925
1977
|
font-size: 1.125rem;
|
|
1926
1978
|
line-height: 1.75rem;
|
|
@@ -1967,6 +2019,9 @@ video {
|
|
|
1967
2019
|
.leading-4 {
|
|
1968
2020
|
line-height: 1rem;
|
|
1969
2021
|
}
|
|
2022
|
+
.leading-none {
|
|
2023
|
+
line-height: 1;
|
|
2024
|
+
}
|
|
1970
2025
|
.leading-tight {
|
|
1971
2026
|
line-height: 1.25;
|
|
1972
2027
|
}
|
|
@@ -2308,6 +2363,10 @@ body {
|
|
|
2308
2363
|
--tw-bg-opacity: 1;
|
|
2309
2364
|
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
2310
2365
|
}
|
|
2366
|
+
.hover\:bg-gray-300:hover {
|
|
2367
|
+
--tw-bg-opacity: 1;
|
|
2368
|
+
background-color: rgb(209 213 219 / var(--tw-bg-opacity));
|
|
2369
|
+
}
|
|
2311
2370
|
.hover\:bg-gray-400:hover {
|
|
2312
2371
|
--tw-bg-opacity: 1;
|
|
2313
2372
|
background-color: rgb(156 163 175 / var(--tw-bg-opacity));
|
|
@@ -2494,6 +2553,10 @@ body {
|
|
|
2494
2553
|
--tw-bg-opacity: 1;
|
|
2495
2554
|
background-color: rgb(191 219 254 / var(--tw-bg-opacity));
|
|
2496
2555
|
}
|
|
2556
|
+
:is(.dark .dark\:bg-gray-200) {
|
|
2557
|
+
--tw-bg-opacity: 1;
|
|
2558
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
2559
|
+
}
|
|
2497
2560
|
:is(.dark .dark\:bg-gray-600) {
|
|
2498
2561
|
--tw-bg-opacity: 1;
|
|
2499
2562
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
|
@@ -2558,6 +2621,10 @@ body {
|
|
|
2558
2621
|
--tw-text-opacity: 1;
|
|
2559
2622
|
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2560
2623
|
}
|
|
2624
|
+
:is(.dark .dark\:text-gray-800) {
|
|
2625
|
+
--tw-text-opacity: 1;
|
|
2626
|
+
color: rgb(31 41 55 / var(--tw-text-opacity));
|
|
2627
|
+
}
|
|
2561
2628
|
:is(.dark .dark\:text-green-800) {
|
|
2562
2629
|
--tw-text-opacity: 1;
|
|
2563
2630
|
color: rgb(22 101 52 / var(--tw-text-opacity));
|
package/src/tailwind.css
CHANGED
|
@@ -22,6 +22,24 @@
|
|
|
22
22
|
var(--border-radius) - calc(var(--border-radius) / 3)
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
.inline-code {
|
|
27
|
+
font-size: 0.75rem;
|
|
28
|
+
/* color: theme("colors.slate.500"); */
|
|
29
|
+
/* background-color: theme("colors.stone.100"); */
|
|
30
|
+
border-radius: theme("borderRadius.DEFAULT");
|
|
31
|
+
/* padding-left: theme("spacing[1.5]");
|
|
32
|
+
padding-right: theme("spacing[1.5]");
|
|
33
|
+
padding-top: theme("spacing.1");
|
|
34
|
+
padding-bottom: theme("spacing.1"); */
|
|
35
|
+
padding: theme("spacing.1") theme("spacing[1.5]");
|
|
36
|
+
/* margin: theme("spacing.0") theme("spacing.1"); */
|
|
37
|
+
|
|
38
|
+
border: theme("colors.gray.300") 1px solid;
|
|
39
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
40
|
+
Liberation Mono, Courier New, monospace;
|
|
41
|
+
}
|
|
42
|
+
|
|
25
43
|
input[type="number"]::-webkit-inner-spin-button,
|
|
26
44
|
input[type="number"]::-webkit-outer-spin-button {
|
|
27
45
|
-webkit-appearance: none;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Meta } from "@storybook/react";
|
|
3
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const ButtonVariationsStory: {
|
|
6
|
-
(): React.JSX.Element;
|
|
7
|
-
storyName: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const ButtonLoadingStory: {
|
|
10
|
-
(): React.JSX.Element;
|
|
11
|
-
storyName: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const ButtonWidthStory: {
|
|
14
|
-
(): React.JSX.Element;
|
|
15
|
-
storyName: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const ButtonSizesStory: {
|
|
18
|
-
(): React.JSX.Element;
|
|
19
|
-
storyName: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const ButtonIconsStory: {
|
|
22
|
-
(): React.JSX.Element;
|
|
23
|
-
storyName: string;
|
|
24
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Meta } from "@storybook/react";
|
|
3
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const ButtonVariationsStory: {
|
|
6
|
-
(): React.JSX.Element;
|
|
7
|
-
storyName: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const ButtonLoadingStory: {
|
|
10
|
-
(): React.JSX.Element;
|
|
11
|
-
storyName: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const ButtonWidthStory: {
|
|
14
|
-
(): React.JSX.Element;
|
|
15
|
-
storyName: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const ButtonSizesStory: {
|
|
18
|
-
(): React.JSX.Element;
|
|
19
|
-
storyName: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const ButtonIconsStory: {
|
|
22
|
-
(): React.JSX.Element;
|
|
23
|
-
storyName: string;
|
|
24
|
-
};
|