@sikka/hawa 0.1.91 → 0.1.93

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.
@@ -1,5 +1,5 @@
1
1
  import React, { useState, FC, useRef, useEffect } from "react"
2
- import clsx from "clsx"
2
+ import { cn } from "../util"
3
3
 
4
4
  type RadioTypes = {
5
5
  orientation?: "vertical" | "horizontal"
@@ -49,7 +49,7 @@ export const HawaRadio: FC<RadioTypes> = ({
49
49
  return (
50
50
  <ul
51
51
  ref={ref}
52
- className={clsx(
52
+ className={cn(
53
53
  props.options?.length > 2
54
54
  ? "flex-wrap xs:max-w-full xs:flex-nowrap"
55
55
  : "",
@@ -65,7 +65,7 @@ export const HawaRadio: FC<RadioTypes> = ({
65
65
  setSelectedOption(opt.value)
66
66
  props.onChangeTab(opt.value)
67
67
  }}
68
- className={clsx(
68
+ className={cn(
69
69
  "w-full cursor-pointer",
70
70
  orientation === "horizontal" &&
71
71
  parentDirection === "ltr" &&
@@ -89,7 +89,7 @@ export const HawaRadio: FC<RadioTypes> = ({
89
89
  )
90
90
  case "bordered":
91
91
  return (
92
- <div className={clsx(orientationStyle[orientation], "gap-4")}>
92
+ <div className={cn(orientationStyle[orientation], "gap-4")}>
93
93
  {props.options.map((opt, i) => (
94
94
  <div className="rounded border border-gray-200 ">
95
95
  <div
@@ -106,7 +106,7 @@ export const HawaRadio: FC<RadioTypes> = ({
106
106
  />
107
107
  <label
108
108
  htmlFor={opt.value.toString()}
109
- className={clsx(
109
+ className={cn(
110
110
  "ml-2 w-full p-4 pl-3 text-sm font-medium dark:text-white",
111
111
  opt.disabled ? "opacity-50" : "cursor-pointer text-gray-900"
112
112
  )}
@@ -120,7 +120,7 @@ export const HawaRadio: FC<RadioTypes> = ({
120
120
  )
121
121
  case "cards":
122
122
  return (
123
- <ul className={clsx(orientationStyle[orientation], "gap-4")}>
123
+ <ul className={cn(orientationStyle[orientation], "gap-4")}>
124
124
  {props.options?.map((opt: any, o) => (
125
125
  <li>
126
126
  <input
@@ -134,11 +134,11 @@ export const HawaRadio: FC<RadioTypes> = ({
134
134
  />
135
135
  <label
136
136
  htmlFor={opt.value.toString()}
137
- className={clsx(
138
- "inline-flex h-full w-full items-center justify-between rounded-lg border border-gray-200 bg-white p-5 text-gray-500 peer-checked:border-blue-600 peer-checked:text-blue-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-blue-500",
137
+ className={cn(
138
+ "inline-flex h-full w-full items-center justify-between rounded-lg border border-gray-200 bg-white p-5 text-gray-500 peer-checked:border-blue-600 peer-checked:text-blue-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:peer-checked:text-primary",
139
139
  opt.disabled
140
140
  ? "opacity-50"
141
- : "cursor-pointer hover:bg-gray-100 hover:text-gray-600"
141
+ : "cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700 dark:hover:text-gray-300 hover:text-gray-600"
142
142
  )}
143
143
  >
144
144
  <div className="block h-full w-full">
@@ -169,10 +169,10 @@ export const HawaRadio: FC<RadioTypes> = ({
169
169
 
170
170
  default:
171
171
  return (
172
- <div className={orientationStyle[orientation]}>
172
+ <div className={cn(orientationStyle[orientation], "gap-2")}>
173
173
  {props.options.map((opt, i) => (
174
174
  <div
175
- className="radio-item radio-item-default mb-4 flex items-center transition-all"
175
+ className="radio-item radio-item-default flex items-center transition-all"
176
176
  key={i + 1}
177
177
  >
178
178
  <input
@@ -185,8 +185,8 @@ export const HawaRadio: FC<RadioTypes> = ({
185
185
  />
186
186
  <label
187
187
  htmlFor={opt.value.toString()}
188
- className={clsx(
189
- "ml-2 text-sm font-medium dark:text-white",
188
+ className={cn(
189
+ "text-sm font-medium dark:text-white",
190
190
  opt.disabled
191
191
  ? "text-gray-400"
192
192
  : "cursor-pointer text-gray-900"
@@ -32,6 +32,7 @@ type TextFieldTypes = {
32
32
  preview?: boolean
33
33
  autoComplete?: any
34
34
  maxLength?: any
35
+ iconInside?: React.ReactNode
35
36
  }
36
37
 
37
38
  export const HawaTextField: FC<TextFieldTypes> = ({
@@ -79,12 +80,16 @@ export const HawaTextField: FC<TextFieldTypes> = ({
79
80
  className={cn(
80
81
  defaultInputStyle,
81
82
  props.icon && "pl-10",
82
- preview && "border-transparent bg-transparent px-0"
83
+ preview && "border-transparent bg-transparent px-0"
83
84
  )}
84
85
  disabled={preview}
85
86
  />
86
87
  </div>
87
-
88
+ {props.iconInside && (
89
+ <div className="absolute right-1 top-[41px] -translate-y-1/2">
90
+ {props.iconInside}
91
+ </div>
92
+ )}
88
93
  {props.helpertext ? (
89
94
  <p className="mb-0 mt-1 text-xs text-red-600 dark:text-red-500">
90
95
  {props.helpertext}
@@ -45,6 +45,25 @@ export const Icons = {
45
45
  <polyline points="22,6 12,13 2,6"></polyline>
46
46
  </svg>
47
47
  ),
48
+ phone: (props: IconProps) => (
49
+ <svg
50
+ stroke="currentColor"
51
+ fill="none"
52
+ stroke-width="2"
53
+ viewBox="0 0 24 24"
54
+ aria-hidden="true"
55
+ height="1em"
56
+ width="1em"
57
+ xmlns="http://www.w3.org/2000/svg"
58
+ {...props}
59
+ >
60
+ <path
61
+ stroke-linecap="round"
62
+ stroke-linejoin="round"
63
+ d="M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"
64
+ ></path>
65
+ </svg>
66
+ ),
48
67
  twitter: (props: IconProps) => (
49
68
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
50
69
  <path
@@ -53,6 +72,11 @@ export const Icons = {
53
72
  />
54
73
  </svg>
55
74
  ),
75
+ microsoft: (props: IconProps) => (
76
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" {...props}>
77
+ <path d="M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"></path>
78
+ </svg>
79
+ ),
56
80
  gitHub: (props: IconProps) => (
57
81
  <svg viewBox="0 0 438.549 438.549" {...props}>
58
82
  <path
@@ -0,0 +1,53 @@
1
+ import React from "react"
2
+
3
+ interface Feature {
4
+ icon: React.ReactNode
5
+ title: string
6
+ description: string
7
+ }
8
+
9
+ type StickyFeaturesType = {
10
+ features?: Feature[]
11
+ tag?: string
12
+ title?: string
13
+ description?: string
14
+ }
15
+
16
+ export const StickyFeatures: React.FC<StickyFeaturesType> = (props) => {
17
+ return (
18
+ <div className="bg-white py-24 sm:py-32">
19
+
20
+ <div className="mx-auto flex max-w-5xl flex-col items-start gap-10 px-6 md:flex-row lg:px-8">
21
+ <div className="w-full md:sticky md:top-10 md:w-[28rem]">
22
+ <h2 className="text-lg font-semibold leading-8 tracking-tight text-indigo-600">
23
+ {props.tag}
24
+ </h2>
25
+ <p className="mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
26
+ {props.title}
27
+ </p>
28
+ <p className="mb-2 mt-6 text-base leading-7 text-gray-600">
29
+ {props.description}
30
+ </p>
31
+ </div>
32
+ <div className="mt-5 w-full min-w-0 flex-1 md:mt-0">
33
+ <dl className="grid grid-cols-1 gap-x-8 gap-y-10 md:max-w-xl lg:max-w-none lg:gap-y-16">
34
+ {props.features.map((f) => (
35
+ <div className="relative rounded-lg bg-gray-50 p-10">
36
+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600">
37
+ {f.icon}
38
+ </div>
39
+
40
+ <dt className="mt-4 text-lg font-semibold leading-7 text-gray-900">
41
+ {f.title}
42
+ </dt>
43
+ <dd className="mt-2 text-base leading-7 text-gray-600">
44
+ {f.description}
45
+ </dd>
46
+ </div>
47
+ ))}
48
+ </dl>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ )
53
+ }
@@ -18,9 +18,7 @@ export function Toaster(props) {
18
18
  {toasts.map(function ({ id, title, description, action, ...toastProps }) {
19
19
  return (
20
20
  <Toast direction={props.direction} key={id} {...toastProps}>
21
- <div
22
- className={cn("grid gap-1", isRTL ? "text-right" : "text-left")}
23
- >
21
+ <div className={"grid gap-1 text-start"}>
24
22
  {title && <ToastTitle>{title}</ToastTitle>}
25
23
  {description && (
26
24
  <ToastDescription>{description}</ToastDescription>
@@ -0,0 +1,101 @@
1
+ import React, { FC, useEffect, useRef, useState } from "react"
2
+ import clsx from "clsx"
3
+ import { HawaButton } from "./HawaButton"
4
+ import { Button } from "./Button"
5
+ import { HawaRadio } from "./HawaRadio"
6
+ import { Card, CardContent, CardHeader, CardTitle } from "./Card"
7
+ import { HawaTextField } from "./HawaTextField"
8
+ import { Textarea } from "./Textarea"
9
+
10
+ type ComponentTypes = {
11
+ title?: string
12
+ question: string
13
+ options?: []
14
+ texts?: {
15
+ least: string
16
+ most: string
17
+ }
18
+ position?: "bottom-right" | "bottom-left"
19
+ onOptionClicked?: (option) => void
20
+ }
21
+ export const UserReferralSource: FC<ComponentTypes> = ({
22
+ position = "bottom-right",
23
+ ...props
24
+ }) => {
25
+ const [closed, setClosed] = useState(false)
26
+ const [answered, setAnswered] = useState(false)
27
+ const [clickedOption, setClickedOption] = useState(null)
28
+ const [closingTimer, setClosingTimer] = useState(5)
29
+ const popUpRef = useRef(null)
30
+
31
+ const boxPosition = {
32
+ "bottom-right": "right-4",
33
+ "bottom-left": "left-4",
34
+ }
35
+ useEffect(() => {
36
+ //To change opacity and hide the component
37
+ const timeoutHide = setTimeout(() => {
38
+ if (closingTimer >= 0) {
39
+ setClosingTimer(closingTimer - 1)
40
+ }
41
+ }, 1000)
42
+
43
+ return () => {
44
+ clearTimeout(timeoutHide)
45
+ }
46
+ }, [closingTimer])
47
+
48
+ const slowClose = () => {
49
+ setClosed(true)
50
+ setTimeout(() => {
51
+ popUpRef.current.removeChild(popUpRef.current.children[0])
52
+ }, 200)
53
+ }
54
+ return (
55
+ <Card
56
+ ref={popUpRef}
57
+ className={clsx("fixed bottom-4 p-4 ", boxPosition[position])}
58
+ >
59
+ <button
60
+ type="button"
61
+ className="absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 transition-all hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white"
62
+ data-dismiss-target="#toast-default"
63
+ aria-label="Close"
64
+ onClick={() => slowClose()}
65
+ >
66
+ <svg
67
+ aria-hidden="true"
68
+ className="h-5 w-5"
69
+ fill="currentColor"
70
+ viewBox="0 0 20 20"
71
+ >
72
+ <path
73
+ fillRule="evenodd"
74
+ d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
75
+ clipRule="evenodd"
76
+ ></path>
77
+ </svg>
78
+ </button>
79
+ <CardContent headless>
80
+ <div
81
+ className={clsx(
82
+ "flex flex-col gap-4", // "relative flex w-full max-w-sm flex-col gap-2 rounded border bg-background p-4 shadow-md transition-all",
83
+ closed ? "opacity-0" : "opacity-100"
84
+ )}
85
+ >
86
+ <div className="mt-4 font-bold">{props.question}</div>
87
+ <div className="flex w-full flex-row gap-1 rounded ">
88
+ <HawaRadio
89
+ orientation="vertical"
90
+ options={props.options}
91
+ ></HawaRadio>
92
+ </div>
93
+ <div>
94
+ <Textarea />
95
+ </div>
96
+ </div>
97
+ <Button className="mt-4 w-full">Submit</Button>
98
+ </CardContent>
99
+ </Card>
100
+ )
101
+ }
@@ -51,6 +51,8 @@ export * from "./HawaButton"
51
51
  export * from "./HawaStoreButtons"
52
52
 
53
53
  export * from "./ActionCard"
54
+ export * from "./StickyFeatures"
55
+ export * from "./UserReferralSource"
54
56
 
55
57
  // v0.1
56
58
  export * from "./Button"
package/src/styles.css CHANGED
@@ -422,7 +422,7 @@ video {
422
422
  --border: 240 5.9% 90%;
423
423
  --input: 240 5.9% 90%;
424
424
  --ring: 240 5% 64.9%;
425
- --radius: 0.5rem;
425
+ --radius: 0rem;
426
426
  --radius-inner: calc(var(--radius) - calc(var(--radius) / 3));
427
427
 
428
428
  --layout-primary-700: #b7aff7;
@@ -470,10 +470,11 @@ video {
470
470
  margin-right: 0.25em;
471
471
  width: 0.75em;
472
472
  vertical-align: middle;
473
- color: var(--button-primary-500-hsl);
473
+ color: hsl(var(--primary));
474
+
474
475
  }
475
476
  .link {
476
- color: var(--button-primary-500-hsl);
477
+ color: hsl(var(--primary));
477
478
  }
478
479
  .link:hover {
479
480
  text-decoration: underline;
@@ -531,10 +532,10 @@ video {
531
532
  height: 9px;
532
533
  position: absolute;
533
534
  top: 6px;
534
- left: 11px;
535
+ left: 3px;
535
536
  content: " ";
536
537
  display: block;
537
- background: var(--button-primary-500-hsl);
538
+ background: hsl(var(--primary));
538
539
  }
539
540
  .radio-item-bordered input[type="radio"]:checked + label:after {
540
541
  border-radius: 100%;
@@ -545,7 +546,7 @@ video {
545
546
  left: 23px;
546
547
  content: " ";
547
548
  display: block;
548
- background: var(--button-primary-500-hsl);
549
+ background: hsl(var(--primary));
549
550
  }
550
551
  * {
551
552
  border-color: hsl(var(--border));
@@ -803,6 +804,9 @@ video {
803
804
  .right-0 {
804
805
  right: 0px;
805
806
  }
807
+ .right-1 {
808
+ right: 0.25rem;
809
+ }
806
810
  .right-2 {
807
811
  right: 0.5rem;
808
812
  }
@@ -848,6 +852,9 @@ video {
848
852
  .top-\[22px\] {
849
853
  top: 22px;
850
854
  }
855
+ .top-\[41px\] {
856
+ top: 41px;
857
+ }
851
858
  .top-\[50\%\] {
852
859
  top: 50%;
853
860
  }
@@ -905,6 +912,10 @@ video {
905
912
  margin-left: 0.5rem;
906
913
  margin-right: 0.5rem;
907
914
  }
915
+ .mx-auto {
916
+ margin-left: auto;
917
+ margin-right: auto;
918
+ }
908
919
  .my-0 {
909
920
  margin-top: 0px;
910
921
  margin-bottom: 0px;
@@ -1386,6 +1397,9 @@ video {
1386
1397
  .w-screen {
1387
1398
  width: 100vw;
1388
1399
  }
1400
+ .min-w-0 {
1401
+ min-width: 0px;
1402
+ }
1389
1403
  .min-w-\[220px\] {
1390
1404
  min-width: 220px;
1391
1405
  }
@@ -1418,6 +1432,9 @@ video {
1418
1432
  .max-w-2xs {
1419
1433
  max-width: 250px;
1420
1434
  }
1435
+ .max-w-5xl {
1436
+ max-width: 64rem;
1437
+ }
1421
1438
  .max-w-\[200px\] {
1422
1439
  max-width: 200px;
1423
1440
  }
@@ -1696,6 +1713,13 @@ video {
1696
1713
  -moz-column-gap: 0.75rem;
1697
1714
  column-gap: 0.75rem;
1698
1715
  }
1716
+ .gap-x-8 {
1717
+ -moz-column-gap: 2rem;
1718
+ column-gap: 2rem;
1719
+ }
1720
+ .gap-y-10 {
1721
+ row-gap: 2.5rem;
1722
+ }
1699
1723
  .space-x-1 > :not([hidden]) ~ :not([hidden]) {
1700
1724
  --tw-space-x-reverse: 0;
1701
1725
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
@@ -2104,6 +2128,10 @@ video {
2104
2128
  --tw-bg-opacity: 1;
2105
2129
  background-color: rgb(34 197 94 / var(--tw-bg-opacity));
2106
2130
  }
2131
+ .bg-indigo-600 {
2132
+ --tw-bg-opacity: 1;
2133
+ background-color: rgb(79 70 229 / var(--tw-bg-opacity));
2134
+ }
2107
2135
  .bg-info {
2108
2136
  --tw-bg-opacity: 1;
2109
2137
  background-color: hsl(var(--info) / var(--tw-bg-opacity));
@@ -2337,6 +2365,10 @@ video {
2337
2365
  padding-top: 0.625rem;
2338
2366
  padding-bottom: 0.625rem;
2339
2367
  }
2368
+ .py-24 {
2369
+ padding-top: 6rem;
2370
+ padding-bottom: 6rem;
2371
+ }
2340
2372
  .py-3 {
2341
2373
  padding-top: 0.75rem;
2342
2374
  padding-bottom: 0.75rem;
@@ -2428,6 +2460,9 @@ video {
2428
2460
  .text-right {
2429
2461
  text-align: right;
2430
2462
  }
2463
+ .text-start {
2464
+ text-align: start;
2465
+ }
2431
2466
  .align-middle {
2432
2467
  vertical-align: middle;
2433
2468
  }
@@ -2524,6 +2559,12 @@ video {
2524
2559
  .leading-4 {
2525
2560
  line-height: 1rem;
2526
2561
  }
2562
+ .leading-7 {
2563
+ line-height: 1.75rem;
2564
+ }
2565
+ .leading-8 {
2566
+ line-height: 2rem;
2567
+ }
2527
2568
  .leading-\[25px\] {
2528
2569
  line-height: 25px;
2529
2570
  }
@@ -2608,6 +2649,10 @@ video {
2608
2649
  --tw-text-opacity: 1;
2609
2650
  color: rgb(21 128 61 / var(--tw-text-opacity));
2610
2651
  }
2652
+ .text-indigo-600 {
2653
+ --tw-text-opacity: 1;
2654
+ color: rgb(79 70 229 / var(--tw-text-opacity));
2655
+ }
2611
2656
  .text-info-foreground {
2612
2657
  --tw-text-opacity: 1;
2613
2658
  color: hsl(var(--info-foreground) / var(--tw-text-opacity));
@@ -2952,6 +2997,10 @@ video {
2952
2997
  .repeat-infinite {
2953
2998
  animation-iteration-count: infinite;
2954
2999
  }
3000
+ .shadow-color-primary {
3001
+ --tw-shadow: 0.25rem 0.25rem hsl(var(--primary));
3002
+ box-shadow: var(--tw-shadow);
3003
+ }
2955
3004
  /* Chrome, Safari and Opera */
2956
3005
  .no-scrollbar::-webkit-scrollbar {
2957
3006
  display: none;
@@ -3321,6 +3370,26 @@ body {
3321
3370
  .focus-visible\:ring-offset-2:focus-visible {
3322
3371
  --tw-ring-offset-width: 2px;
3323
3372
  }
3373
+ .active\:translate-x-0:active {
3374
+ --tw-translate-x: 0px;
3375
+ 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));
3376
+ }
3377
+ .active\:translate-x-0\.5:active {
3378
+ --tw-translate-x: 0.125rem;
3379
+ 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));
3380
+ }
3381
+ .active\:translate-y-0:active {
3382
+ --tw-translate-y: 0px;
3383
+ 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));
3384
+ }
3385
+ .active\:translate-y-0\.5:active {
3386
+ --tw-translate-y: 0.125rem;
3387
+ 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));
3388
+ }
3389
+ .active\:shadow-color-primary-active:active {
3390
+ --tw-shadow: 0.125rem 0.125rem hsl(var(--primary));
3391
+ box-shadow: var(--tw-shadow);
3392
+ }
3324
3393
  .disabled\:pointer-events-none:disabled {
3325
3394
  pointer-events: none;
3326
3395
  }
@@ -3798,6 +3867,10 @@ body {
3798
3867
  :is(.dark .dark\:bg-background) {
3799
3868
  background-color: hsl(var(--background));
3800
3869
  }
3870
+ :is(.dark .dark\:bg-black) {
3871
+ --tw-bg-opacity: 1;
3872
+ background-color: rgb(0 0 0 / var(--tw-bg-opacity));
3873
+ }
3801
3874
  :is(.dark .dark\:bg-blue-200) {
3802
3875
  --tw-bg-opacity: 1;
3803
3876
  background-color: rgb(191 219 254 / var(--tw-bg-opacity));
@@ -3993,9 +4066,8 @@ body {
3993
4066
  --tw-ring-opacity: 1;
3994
4067
  --tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity));
3995
4068
  }
3996
- :is(.dark .peer:checked ~ .dark\:peer-checked\:text-blue-500) {
3997
- --tw-text-opacity: 1;
3998
- color: rgb(59 130 246 / var(--tw-text-opacity));
4069
+ :is(.dark .peer:checked ~ .dark\:peer-checked\:text-primary) {
4070
+ color: hsl(var(--primary));
3999
4071
  }
4000
4072
  @media (min-width: 440px) {
4001
4073
 
@@ -4073,6 +4145,11 @@ body {
4073
4145
  padding: 5rem;
4074
4146
  }
4075
4147
 
4148
+ .sm\:py-32 {
4149
+ padding-top: 8rem;
4150
+ padding-bottom: 8rem;
4151
+ }
4152
+
4076
4153
  .sm\:text-left {
4077
4154
  text-align: left;
4078
4155
  }
@@ -4082,6 +4159,11 @@ body {
4082
4159
  line-height: 2rem;
4083
4160
  }
4084
4161
 
4162
+ .sm\:text-4xl {
4163
+ font-size: 2.25rem;
4164
+ line-height: 2.5rem;
4165
+ }
4166
+
4085
4167
  .sm\:text-base {
4086
4168
  font-size: 1rem;
4087
4169
  line-height: 1.5rem;
@@ -4108,6 +4190,14 @@ body {
4108
4190
  }
4109
4191
  @media (min-width: 768px) {
4110
4192
 
4193
+ .md\:sticky {
4194
+ position: sticky;
4195
+ }
4196
+
4197
+ .md\:top-10 {
4198
+ top: 2.5rem;
4199
+ }
4200
+
4111
4201
  .md\:mb-0 {
4112
4202
  margin-bottom: 0px;
4113
4203
  }
@@ -4128,6 +4218,10 @@ body {
4128
4218
  margin-right: 1rem;
4129
4219
  }
4130
4220
 
4221
+ .md\:mt-0 {
4222
+ margin-top: 0px;
4223
+ }
4224
+
4131
4225
  .md\:h-auto {
4132
4226
  height: auto;
4133
4227
  }
@@ -4136,6 +4230,10 @@ body {
4136
4230
  width: 12rem;
4137
4231
  }
4138
4232
 
4233
+ .md\:w-\[28rem\] {
4234
+ width: 28rem;
4235
+ }
4236
+
4139
4237
  .md\:w-full {
4140
4238
  width: 100%;
4141
4239
  }
@@ -4220,6 +4318,10 @@ body {
4220
4318
  max-width: 80rem;
4221
4319
  }
4222
4320
 
4321
+ .lg\:max-w-none {
4322
+ max-width: none;
4323
+ }
4324
+
4223
4325
  .lg\:columns-4 {
4224
4326
  -moz-columns: 4;
4225
4327
  columns: 4;
@@ -4232,6 +4334,15 @@ body {
4232
4334
  .lg\:grid-cols-4 {
4233
4335
  grid-template-columns: repeat(4, minmax(0, 1fr));
4234
4336
  }
4337
+
4338
+ .lg\:gap-y-16 {
4339
+ row-gap: 4rem;
4340
+ }
4341
+
4342
+ .lg\:px-8 {
4343
+ padding-left: 2rem;
4344
+ padding-right: 2rem;
4345
+ }
4235
4346
  }
4236
4347
  @media (min-width: 1280px) {
4237
4348
 
package/src/tailwind.css CHANGED
@@ -88,7 +88,7 @@
88
88
  --border: 240 5.9% 90%;
89
89
  --input: 240 5.9% 90%;
90
90
  --ring: 240 5% 64.9%;
91
- --radius: 0.5rem;
91
+ --radius: 0rem;
92
92
  --radius-inner: calc(var(--radius) - calc(var(--radius) / 3));
93
93
 
94
94
  --layout-primary-700: #b7aff7;
@@ -138,10 +138,11 @@
138
138
  margin-right: 0.25em;
139
139
  width: 0.75em;
140
140
  vertical-align: middle;
141
- color: var(--button-primary-500-hsl);
141
+ color: hsl(var(--primary));
142
+
142
143
  }
143
144
  .link {
144
- color: var(--button-primary-500-hsl);
145
+ color: hsl(var(--primary));
145
146
  }
146
147
  .link:hover {
147
148
  text-decoration: underline;
@@ -199,10 +200,10 @@
199
200
  height: 9px;
200
201
  position: absolute;
201
202
  top: 6px;
202
- left: 11px;
203
+ left: 3px;
203
204
  content: " ";
204
205
  display: block;
205
- background: var(--button-primary-500-hsl);
206
+ background: hsl(var(--primary));
206
207
  }
207
208
  .radio-item-bordered input[type="radio"]:checked + label:after {
208
209
  border-radius: 100%;
@@ -213,7 +214,7 @@
213
214
  left: 23px;
214
215
  content: " ";
215
216
  display: block;
216
- background: var(--button-primary-500-hsl);
217
+ background: hsl(var(--primary));
217
218
  }
218
219
  }
219
220
  @layer base {
@@ -234,6 +235,15 @@
234
235
  }
235
236
  }
236
237
  @layer utilities {
238
+ .shadow-color-primary {
239
+ --tw-shadow: 0.25rem 0.25rem hsl(var(--primary));
240
+ box-shadow: var(--tw-shadow);
241
+ }
242
+ .shadow-color-primary-active {
243
+ --tw-shadow: 0.125rem 0.125rem hsl(var(--primary));
244
+ box-shadow: var(--tw-shadow);
245
+ }
246
+
237
247
  /* Chrome, Safari and Opera */
238
248
  .no-scrollbar::-webkit-scrollbar {
239
249
  display: none;