@iit/precision-ui 0.5.4 → 0.6.0

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.
Files changed (43) hide show
  1. package/dist/Adapters.d.ts +1 -0
  2. package/dist/Adapters.d.ts.map +1 -1
  3. package/dist/components/GridIterator.d.ts +3 -2
  4. package/dist/components/GridIterator.d.ts.map +1 -1
  5. package/dist/components/cards/FeaturedCard.d.ts +1 -1
  6. package/dist/components/cards/FeaturedCard.d.ts.map +1 -1
  7. package/dist/components/ui/Link.d.ts +1 -1
  8. package/dist/components/ui/Link.d.ts.map +1 -1
  9. package/dist/components/ui/button/ButtonText.d.ts +1 -0
  10. package/dist/components/ui/button/ButtonText.d.ts.map +1 -1
  11. package/dist/components/ui/carousel.d.ts +5 -1
  12. package/dist/components/ui/carousel.d.ts.map +1 -1
  13. package/dist/components/ui/input/SearchInput.d.ts +1 -0
  14. package/dist/components/ui/input/SearchInput.d.ts.map +1 -1
  15. package/dist/decorators/CarouselWrapper.d.ts +3 -2
  16. package/dist/decorators/CarouselWrapper.d.ts.map +1 -1
  17. package/dist/index.es22.js +97 -70
  18. package/dist/index.es22.js.map +1 -1
  19. package/dist/index.es25.js +47 -45
  20. package/dist/index.es25.js.map +1 -1
  21. package/dist/index.es39.js +18 -10
  22. package/dist/index.es39.js.map +1 -1
  23. package/dist/index.es40.js +14 -12
  24. package/dist/index.es40.js.map +1 -1
  25. package/dist/index.es42.js +26 -26
  26. package/dist/index.es42.js.map +1 -1
  27. package/dist/index.es43.js +1 -1
  28. package/dist/index.es43.js.map +1 -1
  29. package/dist/index.es45.js +21 -19
  30. package/dist/index.es45.js.map +1 -1
  31. package/dist/index.es46.js +117 -91
  32. package/dist/index.es46.js.map +1 -1
  33. package/dist/index.es6.js +35 -30
  34. package/dist/index.es6.js.map +1 -1
  35. package/dist/index.es8.js +10 -9
  36. package/dist/index.es8.js.map +1 -1
  37. package/dist/index.es9.js.map +1 -1
  38. package/dist/sections/CardsGridSection.d.ts +3 -2
  39. package/dist/sections/CardsGridSection.d.ts.map +1 -1
  40. package/dist/sections/Hero.d.ts +2 -0
  41. package/dist/sections/Hero.d.ts.map +1 -1
  42. package/dist/styles.css +132 -17
  43. package/package.json +1 -1
@@ -2,6 +2,7 @@ import { SectionProps } from './Section';
2
2
 
3
3
  interface CardsGridSectionProps<T> {
4
4
  title: string;
5
+ sectionId?: string;
5
6
  desc?: string;
6
7
  items: T[];
7
8
  component?: string;
@@ -12,10 +13,10 @@ interface CardsGridSectionProps<T> {
12
13
  variant?: SectionProps['variant'];
13
14
  corners?: SectionProps['corners'];
14
15
  columns?: number;
15
- showControlsOnDesktop?: boolean;
16
+ hideControlsOnDesktop?: boolean;
16
17
  withoutCarousel?: boolean;
17
18
  footnote?: string;
18
19
  }
19
- declare const CardsGridSection: <T>({ title, desc, items, component, withoutTopPadding, withTopMargin, withBottomMargin, withoutBottomPadding, variant, corners, columns, showControlsOnDesktop, withoutCarousel, footnote, }: CardsGridSectionProps<T>) => import("react/jsx-dev-runtime").JSX.Element;
20
+ declare const CardsGridSection: <T>({ title, sectionId, desc, items, component, withoutTopPadding, withTopMargin, withBottomMargin, withoutBottomPadding, variant, corners, columns, hideControlsOnDesktop, withoutCarousel, footnote, }: CardsGridSectionProps<T>) => import("react/jsx-dev-runtime").JSX.Element;
20
21
  export default CardsGridSection;
21
22
  //# sourceMappingURL=CardsGridSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardsGridSection.d.ts","sourceRoot":"","sources":["../../src/sections/CardsGridSection.tsx"],"names":[],"mappings":"AAAA,OAAgB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAqBjD,UAAU,qBAAqB,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,CAAC,EAAE,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,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AAM,CAAA;CAClB;AAED,QAAA,MAAM,gBAAgB,4MAgBnB,sBAAsB,CAAC,CAAC,gDAyB1B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -13,7 +13,9 @@ export interface HeroProps {
13
13
  breadcrumbs?: BreadcrumbProps[];
14
14
  bottomButtons?: CommonButtonProps[];
15
15
  size?: 'default' | 'small' | 'medium';
16
+ contentContainerSize?: 'default' | 'medium' | 'large';
16
17
  imageSize?: 'default' | 'small' | 'medium';
18
+ linesImage?: string;
17
19
  }
18
20
  export declare const HeroButton: React.FC<CommonButtonProps>;
19
21
  declare const Hero: React.FC<HeroProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../src/sections/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAe,MAAM,0BAA0B,CAAA;AAGvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAiDzB,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,qBAAqB,CAAC,EAAE,aAAa,CAAA;IACrC,WAAW,CAAC,EAAE,eAAe,EAAE,CAAA;IAC/B,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACnC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAA;IACrC,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAA;CAC3C;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgDlD,CAAA;AA0BD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA2I7B,CAAA;AAED,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../src/sections/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAe,MAAM,0BAA0B,CAAA;AAGvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAgEzB,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,qBAAqB,CAAC,EAAE,aAAa,CAAA;IACrC,WAAW,CAAC,EAAE,eAAe,EAAE,CAAA;IAC/B,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACnC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAA;IACrC,oBAAoB,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;IACrD,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgDlD,CAAA;AA0BD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA4J7B,CAAA;AAED,eAAe,IAAI,CAAA"}
package/dist/styles.css CHANGED
@@ -147,6 +147,7 @@ meter {
147
147
  /* above not in Figma, for checked checkbox hover */
148
148
  --precision-ui-tw-grey-1: 0, 0%, 95%;
149
149
  --precision-ui-tw-grey-2: 0, 0%, 97%;
150
+ --precision-ui-tw-grey-3: 0, 0%, 85.1%;
150
151
  --precision-ui-tw-danger: 1, 88%, 50%;
151
152
  --precision-ui-tw-primary: 222.2 47.4% 11.2%;
152
153
  --precision-ui-tw-primary-foreground: 210 40% 98%;
@@ -199,6 +200,7 @@ meter {
199
200
  --precision-ui-tw-whitish-opacity-80: 0, 0%, 0%, 0.8;
200
201
  --precision-ui-tw-grey-1: 0, 0%, 10%;
201
202
  --precision-ui-tw-grey-2: 0, 0%, 5%;
203
+ --precision-ui-tw-grey-3: 0, 0%, 3%;
202
204
  --precision-ui-tw-danger: 1, 88%, 80%;
203
205
  --precision-ui-tw-primary: 222.2 47.4% 90%;
204
206
  --precision-ui-tw-primary-foreground: 210 40% 10%;
@@ -554,6 +556,9 @@ body{
554
556
  .-ml-4{
555
557
  margin-left: -1rem;
556
558
  }
559
+ .-mt-3{
560
+ margin-top: -0.75rem;
561
+ }
557
562
  .-mt-4{
558
563
  margin-top: -1rem;
559
564
  }
@@ -590,6 +595,9 @@ body{
590
595
  .mt-6{
591
596
  margin-top: 1.5rem;
592
597
  }
598
+ .mt-8{
599
+ margin-top: 2rem;
600
+ }
593
601
  .mt-\[128px\]{
594
602
  margin-top: 128px;
595
603
  }
@@ -620,8 +628,11 @@ body{
620
628
  .hidden{
621
629
  display: none;
622
630
  }
623
- .h-1{
624
- height: 0.25rem;
631
+ .h-0{
632
+ height: 0px;
633
+ }
634
+ .h-0\.5{
635
+ height: 0.125rem;
625
636
  }
626
637
  .h-10{
627
638
  height: 2.5rem;
@@ -740,15 +751,6 @@ body{
740
751
  .max-w-6xl{
741
752
  max-width: 72rem;
742
753
  }
743
- .max-w-\[460px\]{
744
- max-width: 460px;
745
- }
746
- .max-w-\[694px\]{
747
- max-width: 694px;
748
- }
749
- .max-w-\[800px\]{
750
- max-width: 800px;
751
- }
752
754
  .max-w-\[900px\]{
753
755
  max-width: 900px;
754
756
  }
@@ -1017,6 +1019,9 @@ body{
1017
1019
  .border-b-navy-opacity-32{
1018
1020
  border-bottom-color: hsl(var(--precision-ui-tw-navy-opacity-32));
1019
1021
  }
1022
+ .border-b-transparent{
1023
+ border-bottom-color: transparent;
1024
+ }
1020
1025
  .border-b-whitish-opacity-32{
1021
1026
  border-bottom-color: hsl(var(--precision-ui-tw-whitish-opacity-32));
1022
1027
  }
@@ -1046,12 +1051,16 @@ body{
1046
1051
  --precision-ui-tw-bg-opacity: 1;
1047
1052
  background-color: rgb(229 231 235 / var(--precision-ui-tw-bg-opacity));
1048
1053
  }
1049
- .bg-grey-1{
1050
- background-color: hsl(var(--precision-ui-tw-grey-1));
1054
+ .bg-gray-300{
1055
+ --precision-ui-tw-bg-opacity: 1;
1056
+ background-color: rgb(209 213 219 / var(--precision-ui-tw-bg-opacity));
1051
1057
  }
1052
1058
  .bg-grey-2{
1053
1059
  background-color: hsl(var(--precision-ui-tw-grey-2));
1054
1060
  }
1061
+ .bg-grey-3{
1062
+ background-color: hsl(var(--precision-ui-tw-grey-3));
1063
+ }
1055
1064
  .bg-navy{
1056
1065
  background-color: hsl(var(--precision-ui-tw-navy));
1057
1066
  }
@@ -1117,6 +1126,12 @@ body{
1117
1126
  .p-0{
1118
1127
  padding: 0px;
1119
1128
  }
1129
+ .p-1{
1130
+ padding: 0.25rem;
1131
+ }
1132
+ .p-3{
1133
+ padding: 0.75rem;
1134
+ }
1120
1135
  .p-4{
1121
1136
  padding: 1rem;
1122
1137
  }
@@ -1129,8 +1144,8 @@ body{
1129
1144
  .p-\[1px\]{
1130
1145
  padding: 1px;
1131
1146
  }
1132
- .p-\[5px\]{
1133
- padding: 5px;
1147
+ .p-\[8px\]{
1148
+ padding: 8px;
1134
1149
  }
1135
1150
  .px-3{
1136
1151
  padding-left: 0.75rem;
@@ -1223,6 +1238,9 @@ body{
1223
1238
  .pr-10{
1224
1239
  padding-right: 2.5rem;
1225
1240
  }
1241
+ .pr-16{
1242
+ padding-right: 4rem;
1243
+ }
1226
1244
  .pr-2{
1227
1245
  padding-right: 0.5rem;
1228
1246
  }
@@ -1241,6 +1259,9 @@ body{
1241
1259
  .pt-10{
1242
1260
  padding-top: 2.5rem;
1243
1261
  }
1262
+ .pt-3{
1263
+ padding-top: 0.75rem;
1264
+ }
1244
1265
  .pt-4{
1245
1266
  padding-top: 1rem;
1246
1267
  }
@@ -1350,6 +1371,9 @@ body{
1350
1371
  .underline-offset-4{
1351
1372
  text-underline-offset: 4px;
1352
1373
  }
1374
+ .opacity-40{
1375
+ opacity: 0.4;
1376
+ }
1353
1377
  .opacity-50{
1354
1378
  opacity: 0.5;
1355
1379
  }
@@ -2046,10 +2070,67 @@ html {
2046
2070
  transform: translatey(0px) perspective(400px) rotate3d(1, -1, 0, -8deg);
2047
2071
  }
2048
2072
  }
2073
+ @keyframes float2 {
2074
+ 0% {
2075
+ transform: translatey(0px) perspective(400px) scale(1.2);
2076
+ }
2077
+ 50% {
2078
+ transform: translatey(-15px) perspective(400px) scale(1.2);
2079
+ }
2080
+ 100% {
2081
+ transform: translatey(0px) perspective(400px) scale(1.2);
2082
+ }
2083
+ 0%, 100% {
2084
+ opacity: 0;
2085
+ }
2086
+ 30%, 70% {
2087
+ opacity: 1;
2088
+ }
2089
+ 50% {
2090
+ opacity: 1;
2091
+ }
2092
+ 0% {
2093
+ transform: translateX(-50px);
2094
+ }
2095
+ 100% {
2096
+ transform: translateX(50px);
2097
+ }
2098
+ }
2049
2099
  .floating {
2050
2100
  animation: float 6s ease-in-out infinite;
2051
2101
  /* animation-delay: 1s; */
2052
2102
  }
2103
+ @keyframes slowBlinkFadeAndSoar {
2104
+ 0%, 100% {
2105
+ opacity: 0;
2106
+ }
2107
+ 30%, 70% {
2108
+ opacity: 1;
2109
+ }
2110
+ 50% {
2111
+ opacity: 1;
2112
+ }
2113
+ 0% {
2114
+ transform: translateX(-20px);
2115
+ }
2116
+ 100% {
2117
+ transform: translateX(20px);
2118
+ }
2119
+ }
2120
+ .fadeLines {
2121
+ /* animation: slowBlinkFadeAndSoar 6s infinite ease-in-out alternate; */
2122
+ /* animation: slowBlinkFadeAndSoar 6s infinite ease-in-out alternate-reverse; */
2123
+ animation: float2 6s infinite ease-in-out alternate;
2124
+ }
2125
+ @keyframes blink {
2126
+ 75%, 100% {
2127
+ transform: scale(2);
2128
+ opacity: 0;
2129
+ }
2130
+ }
2131
+ .animate-blink {
2132
+ animation: blink 3s infinite;
2133
+ }
2053
2134
  .file\:border-0::file-selector-button{
2054
2135
  border-width: 0px;
2055
2136
  }
@@ -2106,6 +2187,9 @@ html {
2106
2187
  --precision-ui-tw-bg-opacity: 1;
2107
2188
  background-color: rgb(255 255 255 / var(--precision-ui-tw-bg-opacity));
2108
2189
  }
2190
+ .hover\:bg-whitish:hover{
2191
+ background-color: hsl(var(--precision-ui-tw-whitish));
2192
+ }
2109
2193
  .hover\:bg-whitish-opacity-16:hover{
2110
2194
  background-color: hsl(var(--precision-ui-tw-whitish-opacity-16));
2111
2195
  }
@@ -2129,6 +2213,10 @@ html {
2129
2213
  .hover\:text-navy:hover{
2130
2214
  color: hsl(var(--precision-ui-tw-navy));
2131
2215
  }
2216
+ .hover\:text-white:hover{
2217
+ --precision-ui-tw-text-opacity: 1;
2218
+ color: rgb(255 255 255 / var(--precision-ui-tw-text-opacity));
2219
+ }
2132
2220
  .hover\:text-whitish-opacity-60:hover{
2133
2221
  color: hsl(var(--precision-ui-tw-whitish-opacity-60));
2134
2222
  }
@@ -2138,6 +2226,9 @@ html {
2138
2226
  .hover\:opacity-100:hover{
2139
2227
  opacity: 1;
2140
2228
  }
2229
+ .hover\:opacity-60:hover{
2230
+ opacity: 0.6;
2231
+ }
2141
2232
  .focus\:border-navy:focus{
2142
2233
  border-color: hsl(var(--precision-ui-tw-navy));
2143
2234
  }
@@ -2326,6 +2417,9 @@ html {
2326
2417
  .sm\:col-span-3{
2327
2418
  grid-column: span 3 / span 3;
2328
2419
  }
2420
+ .sm\:col-span-4{
2421
+ grid-column: span 4 / span 4;
2422
+ }
2329
2423
  .sm\:mt-6{
2330
2424
  margin-top: 1.5rem;
2331
2425
  }
@@ -2394,8 +2488,8 @@ html {
2394
2488
  }
2395
2489
  }
2396
2490
  @media (min-width: 768px){
2397
- .md\:max-w-3xl{
2398
- max-width: 48rem;
2491
+ .md\:max-w-2xl{
2492
+ max-width: 42rem;
2399
2493
  }
2400
2494
  .md\:basis-1\/2{
2401
2495
  flex-basis: 50%;
@@ -2405,6 +2499,27 @@ html {
2405
2499
  .lg\:block{
2406
2500
  display: block;
2407
2501
  }
2502
+ .lg\:hidden{
2503
+ display: none;
2504
+ }
2505
+ .lg\:max-w-2xl{
2506
+ max-width: 42rem;
2507
+ }
2508
+ .lg\:max-w-5xl{
2509
+ max-width: 64rem;
2510
+ }
2511
+ .lg\:max-w-\[370px\]{
2512
+ max-width: 370px;
2513
+ }
2514
+ .lg\:max-w-\[460px\]{
2515
+ max-width: 460px;
2516
+ }
2517
+ .lg\:max-w-\[590px\]{
2518
+ max-width: 590px;
2519
+ }
2520
+ .lg\:max-w-\[700px\]{
2521
+ max-width: 700px;
2522
+ }
2408
2523
  .lg\:max-w-sm{
2409
2524
  max-width: 24rem;
2410
2525
  }
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/wowxoxo/precision-ui.git"
15
15
  },
16
- "version": "0.5.4",
16
+ "version": "0.6.0",
17
17
  "type": "module",
18
18
  "module": "./dist/index.es.js",
19
19
  "types": "./dist/index.d.ts",