@stackshift-ui/header 7.0.0-beta.7 → 7.0.0-beta.9

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 (52) hide show
  1. package/package.json +16 -16
  2. package/src/header_a.tsx +6 -22
  3. package/src/header_b.tsx +5 -26
  4. package/src/header_c.tsx +6 -22
  5. package/src/header_d.tsx +6 -22
  6. package/src/header_e.tsx +6 -22
  7. package/dist/chunk-624TS2DG.mjs +0 -1
  8. package/dist/chunk-6UHNMHLI.mjs +0 -1
  9. package/dist/chunk-BIUXVIBB.mjs +0 -1
  10. package/dist/chunk-BX4JMX6N.mjs +0 -1
  11. package/dist/chunk-MD4L5MKV.mjs +0 -1
  12. package/dist/chunk-N4PELF6W.mjs +0 -1
  13. package/dist/chunk-RYJUSUOP.mjs +0 -1
  14. package/dist/chunk-W2QPS3BW.mjs +0 -1
  15. package/dist/chunk-ZT2OIHMD.mjs +0 -1
  16. package/dist/header.d.ts +0 -34
  17. package/dist/header.js +0 -1
  18. package/dist/header.mjs +0 -1
  19. package/dist/header_a.d.ts +0 -3
  20. package/dist/header_a.js +0 -1
  21. package/dist/header_a.mjs +0 -1
  22. package/dist/header_b.d.ts +0 -3
  23. package/dist/header_b.js +0 -1
  24. package/dist/header_b.mjs +0 -1
  25. package/dist/header_c.d.ts +0 -3
  26. package/dist/header_c.js +0 -1
  27. package/dist/header_c.mjs +0 -1
  28. package/dist/header_d.d.ts +0 -3
  29. package/dist/header_d.js +0 -1
  30. package/dist/header_d.mjs +0 -1
  31. package/dist/header_e.d.ts +0 -3
  32. package/dist/header_e.js +0 -1
  33. package/dist/header_e.mjs +0 -1
  34. package/dist/header_f.d.ts +0 -3
  35. package/dist/header_f.js +0 -1
  36. package/dist/header_f.mjs +0 -1
  37. package/dist/header_g.d.ts +0 -3
  38. package/dist/header_g.js +0 -1
  39. package/dist/header_g.mjs +0 -1
  40. package/dist/helpers/index.d.ts +0 -3
  41. package/dist/helpers/index.js +0 -1
  42. package/dist/helpers/index.mjs +0 -1
  43. package/dist/index.d.ts +0 -8
  44. package/dist/index.js +0 -2
  45. package/dist/index.mjs +0 -2
  46. package/dist/types.d.ts +0 -525
  47. package/dist/types.js +0 -1
  48. package/dist/utils/portableText/customBlockStyle.d.ts +0 -2
  49. package/dist/utils/portableText/customBlockStyle.js +0 -1
  50. package/dist/utils/portableText/customBlockStyle.mjs +0 -1
  51. package/dist/utils/portableText.d.ts +0 -0
  52. package/dist/utils/portableText.js +0 -1
package/dist/types.d.ts DELETED
@@ -1,525 +0,0 @@
1
- import { PortableTextComponents } from "@portabletext/react";
2
- import { ButtonProps } from ".";
3
- export type StyleVariants<T extends string> = Record<T, string>;
4
- export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
5
- export interface MainImage {
6
- image: string;
7
- alt?: string;
8
- }
9
- export interface MegaMenu {
10
- _type: string;
11
- showcaseLink?: ShowcaseLink[];
12
- links?: MegaMenuLink[];
13
- _key: string;
14
- title?: string;
15
- groupOfLinks?: GroupOfLink[];
16
- label?: string;
17
- linkTarget?: string;
18
- linkType?: string;
19
- url?: string;
20
- linkExternal?: string;
21
- }
22
- export interface Logo extends ConditionalLink {
23
- alt?: string;
24
- linkTarget?: string;
25
- image?: string;
26
- }
27
- export interface Logos {
28
- logo: Logo[];
29
- }
30
- export interface GroupOfLink {
31
- _type: string;
32
- links: GroupOfLinkRoot[];
33
- _key: string;
34
- title: string;
35
- primaryButton: LabeledRouteWithKey;
36
- }
37
- export interface GroupOfLinkRoot {
38
- title: string;
39
- _type: string;
40
- label?: string;
41
- links: LabeledRouteWithKey[];
42
- _key: string;
43
- }
44
- export interface MegaMenu {
45
- _type: string;
46
- showcaseLink?: ShowcaseLink[];
47
- links?: MegaMenuLink[];
48
- _key: string;
49
- title?: string;
50
- groupOfLinks?: GroupOfLink[];
51
- label?: string;
52
- linkTarget?: string;
53
- linkType?: string;
54
- url?: string;
55
- }
56
- export interface ShowcaseLink {
57
- mainImage: MainImage;
58
- _type: string;
59
- primaryButton: LabeledRouteWithKey;
60
- _key: string;
61
- }
62
- export interface MegaMenuLink {
63
- _key: string;
64
- title: string;
65
- _type: string;
66
- links: LabeledRouteWithKey[];
67
- primaryButton: LabeledRouteWithKey;
68
- label: string;
69
- }
70
- export interface LabeledRoute extends ConditionalLink {
71
- ariaLabel?: string;
72
- label?: string;
73
- linkTarget?: string;
74
- linkType?: string;
75
- _type?: string;
76
- linkInternal?: any;
77
- linkExternal?: any;
78
- referenceType?: string;
79
- multipleRoutes?: LabeledRouteWithKey[];
80
- multipleInnerRoutes?: LabeledRouteWithKey[];
81
- }
82
- export interface ConditionalLink {
83
- type?: string;
84
- internalLink?: string | null;
85
- externalLink?: string | null;
86
- }
87
- export interface StatItems {
88
- label?: string;
89
- mainImage?: MainImage;
90
- value?: string;
91
- _key?: string;
92
- _type?: string;
93
- }
94
- export interface Logo {
95
- alt?: string;
96
- linkTarget?: string;
97
- image?: string;
98
- type?: string;
99
- internalLink?: string;
100
- externalLink?: string;
101
- linkExternal?: string;
102
- linkInternal?: string;
103
- }
104
- export interface Images {
105
- image?: string | null;
106
- video?: string | null;
107
- _key?: string;
108
- _type?: string;
109
- alt?: string;
110
- }
111
- export interface ContactDetails {
112
- addressInfo?: string;
113
- contactInfo?: string;
114
- emailInfo?: string;
115
- _key?: string;
116
- }
117
- export interface SocialLink {
118
- socialMedia?: string | null;
119
- socialMediaLink?: string | null;
120
- _key?: string | null;
121
- _type?: string | null;
122
- socialMediaIcon?: {
123
- alt?: string;
124
- image?: string;
125
- } | null;
126
- socialMediaPlatform?: string | null;
127
- }
128
- export interface LabeledRouteWithKey extends LabeledRoute {
129
- _key?: string;
130
- image?: string;
131
- alt?: string;
132
- multipleRoutes?: LabeledRouteWithKey[];
133
- featuredRoute?: {
134
- featuredLink: LabeledRoute;
135
- mainImage: {
136
- image: string;
137
- alt: string;
138
- };
139
- };
140
- routeType?: string;
141
- }
142
- export interface ArrayOfImageTitleAndText {
143
- mainImage?: {
144
- alt?: string;
145
- image?: string;
146
- };
147
- plainText?: string;
148
- title?: string;
149
- _key?: string;
150
- _type?: string;
151
- }
152
- export interface FeaturedItem {
153
- description?: string;
154
- mainImage?: MainImage;
155
- title?: string;
156
- subtitle?: string;
157
- _key?: string;
158
- _type?: string;
159
- }
160
- export interface ArrayOfTitleAndText {
161
- _key?: string;
162
- plainText?: string;
163
- title?: string;
164
- }
165
- export interface BlogPost extends SanityBody {
166
- authors?: Author[] | null;
167
- body?: any;
168
- categories?: Category[] | null;
169
- excerpt?: string | null;
170
- link?: string | null;
171
- mainImage?: string | null;
172
- publishedAt?: string;
173
- seo?: Seo | null;
174
- slug?: SanitySlug | null;
175
- title?: string;
176
- }
177
- export interface Seo {
178
- _type?: string;
179
- seoTitle?: string;
180
- seoDescription?: string;
181
- seoImage?: string;
182
- seoKeywords?: string;
183
- seoSynonyms?: string;
184
- }
185
- export interface SanitySlug {
186
- current?: string;
187
- _type?: "slug";
188
- }
189
- export interface SanityBody {
190
- _createdAt?: string;
191
- _id?: string;
192
- _rev?: string;
193
- _type?: string;
194
- _updatedAt?: string;
195
- }
196
- export interface Author extends SanityBody {
197
- link?: string | null;
198
- bio?: string | null;
199
- name?: string | null;
200
- slug?: SanitySlug | null;
201
- image?: string | null;
202
- profile?: {
203
- alt: string;
204
- image: string;
205
- } | null;
206
- }
207
- export interface Category extends SanityBody {
208
- title?: string;
209
- }
210
- export interface Form {
211
- id?: string | null;
212
- buttonLabel?: string | null;
213
- name?: string | null;
214
- subtitle?: string | null;
215
- fields?: FormFields[] | null;
216
- thankYouPage?: ThankYouPage | null;
217
- }
218
- export interface FormFields {
219
- name?: string;
220
- placeholder?: string;
221
- pricingType?: string;
222
- type?: FormTypes;
223
- _key?: string;
224
- _type?: string;
225
- isRequired?: boolean;
226
- label?: string;
227
- items?: string[];
228
- }
229
- export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
230
- export interface ThankYouPage {
231
- externalLink?: string | null;
232
- internalLink?: string | null;
233
- linkInternal?: any;
234
- linkTarget?: string;
235
- linkType?: string;
236
- type?: string;
237
- }
238
- export interface SectionsProps {
239
- template?: Template;
240
- data?: Sections;
241
- variant?: string | null | undefined;
242
- schema?: Variants;
243
- }
244
- export interface Sections extends SanityBody {
245
- label?: string;
246
- variant?: string;
247
- variants?: Variants;
248
- _key?: string;
249
- }
250
- export interface Variants {
251
- template?: Template;
252
- multipleMenus?: any;
253
- multipleLinks?: any;
254
- megaMenu?: MegaMenu[];
255
- arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
256
- logo?: Logo | null;
257
- logos?: Logos[] | null;
258
- primaryButton?: LabeledRoute | null;
259
- secondaryButton?: LabeledRoute | null;
260
- routes?: LabeledRouteWithKey[] | null;
261
- menu?: LabeledRouteWithKey[] | null;
262
- dropdownMenu?: LabeledRouteWithKey[] | null;
263
- iconLinks?: LabeledRouteWithKey[] | null;
264
- plans?: Plans[] | null;
265
- formLinks?: LabeledRouteWithKey[] | null;
266
- portfolios?: Portfolios[] | null;
267
- portfoliosWithCategories?: PortfoliosWithCategories[] | null;
268
- length?: number;
269
- signInLink?: LabeledRoute | null;
270
- signinLink?: LabeledRoute | null;
271
- tags?: string[] | null;
272
- posts?: BlogPost[] | null;
273
- position?: "left" | "center" | "right";
274
- blogsPerPage?: number | null;
275
- form?: Form | null;
276
- collections?: Collection | null;
277
- products?: CollectionProduct | null;
278
- allProducts?: Collection[];
279
- subtitle?: string | null;
280
- caption?: string | null;
281
- title?: string | null;
282
- plainText?: string | null;
283
- contactDescription?: string | null;
284
- officeInformation?: string | null;
285
- contactEmail?: string | null;
286
- contactNumber?: string | null;
287
- socialLinks?: SocialLink[] | null;
288
- socialMedia?: SocialLink[] | null;
289
- block?: any;
290
- heading?: string | null;
291
- acceptButtonLabel?: string | null;
292
- declineButtonLabel?: string | null;
293
- faqsWithCategories?: FaqsWithCategory[] | null;
294
- faqs?: AskedQuestion[] | null;
295
- arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
296
- description?: string | null;
297
- featuredItems?: FeaturedItem[] | null;
298
- images?: Images[] | null;
299
- mediaItems?: Images[] | null;
300
- contactDetails?: ContactDetails[] | null;
301
- copyright?: string | null;
302
- mainImage?: MainImage | null;
303
- youtubeLink?: string | null;
304
- banner?: any;
305
- stats?: StatItems[] | null;
306
- teams?: Team[] | null;
307
- testimonials?: Testimonial[] | null;
308
- selectStripeAccount?: string;
309
- annualBilling?: string;
310
- monthlyBilling?: string;
311
- productDetails?: ProductDetail[];
312
- btnLabel?: string;
313
- selectAccount?: string;
314
- hashtags?: string[];
315
- numberOfPosts?: number;
316
- text?: string;
317
- button?: LabeledRoute;
318
- features?: string[];
319
- config?: {
320
- enableAnalytics: boolean;
321
- cookiePolicy?: {
322
- siteName: string;
323
- cookiePolicyPage: Reference;
324
- };
325
- consentModalPosition?: string;
326
- };
327
- contactLink?: LabeledRoute;
328
- isFullWidth?: boolean;
329
- subtitlePosition?: "top" | "bottom";
330
- spacing?: number;
331
- isOrdered?: boolean;
332
- startingPosition?: "left" | "right";
333
- headerSections?: HeaderSections[];
334
- }
335
- export interface HeaderBox extends HeaderSections {
336
- isImageLeft?: boolean;
337
- isFullWidth?: boolean;
338
- index?: number;
339
- isOrdered?: boolean;
340
- }
341
- export interface HeaderSections {
342
- _key: string;
343
- title?: string;
344
- subtitle?: string;
345
- description?: string;
346
- mainImage?: {
347
- image: any;
348
- alt?: string;
349
- };
350
- imageTitle?: any;
351
- alignment?: string;
352
- imageHeight?: "sm" | "md" | "lg";
353
- columnContent?: any;
354
- primaryButton?: ButtonProps;
355
- }
356
- export interface Template {
357
- bg?: string;
358
- color?: string;
359
- }
360
- export type Plans = {
361
- _key?: string | null;
362
- _type?: "planItems" | null;
363
- checkoutButtonName?: string | null;
364
- description?: string | null;
365
- monthlyPrice?: string | null;
366
- planType?: string | null;
367
- yearlyPrice?: string | null;
368
- planIncludes?: string[] | null;
369
- primaryButton?: LabeledRoute | null;
370
- } & Record<string, string>;
371
- export interface Portfolios {
372
- dateAdded?: string | null;
373
- mainImage?: {
374
- image?: string | null;
375
- alt?: string | null;
376
- } | null;
377
- primaryButton?: LabeledRoute | null;
378
- title?: string | null;
379
- _key?: string | null;
380
- _type?: string | null;
381
- }
382
- export interface PortfoliosWithCategories {
383
- category?: string | null;
384
- content?: Content[] | null;
385
- primaryButton?: LabeledRoute | null;
386
- _key?: string | null;
387
- _type?: string | null;
388
- }
389
- export interface Content extends Portfolios {
390
- description?: string | null;
391
- subtitle?: string | null;
392
- }
393
- export interface Collection extends SanityBody {
394
- collectionInfoVariant?: {
395
- variant?: string;
396
- } | null;
397
- name?: string | null;
398
- products?: CollectionProduct[] | null;
399
- sections?: any;
400
- seo?: Seo | null;
401
- slug?: SanitySlug | null;
402
- }
403
- export interface CollectionProduct extends SanityBody {
404
- compareToPrice?: number | null;
405
- description?: string | null;
406
- ecwidProductId?: number | null;
407
- name?: string | null;
408
- price?: number | null;
409
- productInfo?: ProductInfo | null;
410
- productInfoVariant?: {
411
- variant?: string;
412
- } | null;
413
- sections?: any;
414
- seo?: Seo | null;
415
- slug?: SanitySlug | null;
416
- }
417
- interface ProductInfo {
418
- btnLabel?: string | null;
419
- images?: ProductInfoImage[] | null;
420
- productDetails?: ProductDetail[] | null;
421
- socialLinks?: SocialLink[] | null;
422
- subtitle?: string | null;
423
- }
424
- export interface ProductDetail {
425
- blockContent?: any;
426
- contentType?: string;
427
- tabName?: string;
428
- _key?: string;
429
- [key: string]: any;
430
- }
431
- interface ProductInfoImage {
432
- alt?: string | null;
433
- _key: string;
434
- _type: string;
435
- image?: string | null;
436
- }
437
- export interface FaqsWithCategory {
438
- askedQuestions?: AskedQuestion[] | null;
439
- category?: string | null;
440
- _key?: string;
441
- _type?: string;
442
- }
443
- export interface AskedQuestion {
444
- answer?: string | null;
445
- question?: string | null;
446
- hidden?: boolean;
447
- _key?: string;
448
- _type?: string;
449
- }
450
- export interface Team {
451
- jobTitle?: string;
452
- mainImage?: MainImage;
453
- name?: string;
454
- plainText?: string;
455
- _key?: string;
456
- _type?: string;
457
- }
458
- export interface Testimonial {
459
- jobTitle?: string;
460
- mainImage?: MainImage;
461
- name?: string;
462
- rating?: string;
463
- testimony?: string;
464
- _key?: string;
465
- _type?: string;
466
- }
467
- export declare interface Reference {
468
- _type: string;
469
- _ref: string;
470
- _key?: string;
471
- _weak?: boolean;
472
- _strengthenOnPublish?: {
473
- type: string;
474
- weak?: boolean;
475
- template?: {
476
- id: string;
477
- params: Record<string, string | number | boolean>;
478
- };
479
- };
480
- }
481
- export type MyPortableTextComponents = PortableTextComponents & {
482
- code?: ({ value }: {
483
- value: {
484
- language?: string;
485
- code?: string;
486
- };
487
- }) => JSX.Element;
488
- };
489
- export interface ConditionalLinkTypes {
490
- className?: string;
491
- ariaLabel: string;
492
- style?: any;
493
- children: string | React.ReactNode;
494
- link: LabeledRoute | LabeledRouteWithKey | undefined;
495
- target?: string;
496
- }
497
- export interface IconLink {
498
- _key: string;
499
- image: string;
500
- alt?: string;
501
- linkExternal: string;
502
- linkTarget?: "_blank" | "_self";
503
- }
504
- export interface HeaderBox extends HeaderSections {
505
- isImageLeft?: boolean;
506
- isFullWidth?: boolean;
507
- index?: number;
508
- isOrdered?: boolean;
509
- }
510
- export interface HeaderSections {
511
- _key: string;
512
- title?: string;
513
- subtitle?: string;
514
- description?: string;
515
- mainImage?: {
516
- image: any;
517
- alt?: string;
518
- };
519
- imageTitle?: any;
520
- alignment?: string;
521
- imageHeight?: "sm" | "md" | "lg";
522
- columnContent?: any;
523
- primaryButton?: ButtonProps;
524
- }
525
- export {};
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(e,t,l,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of s(t))!o.call(e,n)&&n!==l&&r(e,n,{get:()=>t[n],enumerable:!(i=a(t,n))||i.enumerable});return e};var u=e=>g(r({},"__esModule",{value:!0}),e);var c={};module.exports=u(c);
@@ -1,2 +0,0 @@
1
- import { MyPortableTextComponents } from "../../types";
2
- export declare const customBlockStyle: ({ className }: any) => MyPortableTextComponents;
@@ -1 +0,0 @@
1
- "use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var P=Object.prototype.hasOwnProperty;var b=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},m=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of i(e))!P.call(t,l)&&l!==r&&a(t,l,{get:()=>e[l],enumerable:!(n=c(e,l))||n.enumerable});return t};var x=t=>m(a({},"__esModule",{value:!0}),t);var p={};b(p,{customBlockStyle:()=>h});module.exports=x(p);var o=require("react/jsx-runtime"),h=({className:t})=>({block:{h1:e=>(0,o.jsx)("h1",{className:`h1 ${t}`,children:e.children}),h2:e=>(0,o.jsx)("h2",{className:`h2 ${t}`,children:e.children}),h3:e=>(0,o.jsx)("h3",{className:`h3 ${t}`,children:e.children}),h4:e=>(0,o.jsx)("h4",{className:`h4 ${t}`,children:e.children}),normal:e=>(0,o.jsx)("p",{className:`text-normal lg:text-left sm:text-lg sm:!leading-[32px] font-normal font-body-kb tracking-wide ${t}`,children:e.children}),blockquote:e=>(0,o.jsxs)("blockquote",{className:`my-5 px-14 leading-loose italic ${t}`,children:["- ",e.children]})},code:e=>(0,o.jsx)("pre",{"data-language":e.value.language,className:t,children:(0,o.jsx)("code",{children:e.value.code})}),list:{bullet:e=>(0,o.jsx)("ul",{className:`pl-4 list-disc font-light ${t}`,children:e.children}),number:e=>(0,o.jsx)("ol",{className:`pl-4 list-decimal font-light ${t}`,children:e.children})},listItem:{bullet:e=>(0,o.jsx)("li",{className:`font-light ${t}`,children:e.children})},marks:{strong:e=>(0,o.jsx)("strong",{className:`font-bold ${t}`,children:e.children}),em:e=>(0,o.jsx)("em",{className:t,children:e.children}),code:e=>(0,o.jsx)("code",{className:t,children:e.children}),link:e=>{var r,n,l;return(0,o.jsx)("a",{"aria-label":(n=(r=e.children)==null?void 0:r.toString())!=null?n:"external link",className:`underline underline-offset-2 decoration-gray-2 decoration-1 hover:decoration-2 ${t}`,href:(l=e.value)==null?void 0:l.href,target:"_blank",rel:"noopener noreferrer",children:e.children})}},types:{image:e=>(0,o.jsxs)("div",{className:`my-5 ${t}`,children:[(0,o.jsx)("img",{src:e.value.toString(),alt:e.value.alt||"Image",className:`w-full h-auto ${t}`}),e.value.caption&&(0,o.jsx)("p",{className:`text-center text-sm text-gray-600 ${t}`,children:e.value.caption})]})}});0&&(module.exports={customBlockStyle});
@@ -1 +0,0 @@
1
- import{a}from"../../chunk-W2QPS3BW.mjs";export{a as customBlockStyle};
File without changes
@@ -1 +0,0 @@
1
- "use strict";