@stackshift-ui/header 7.0.0-beta.0 → 7.0.0-beta.10

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 (54) hide show
  1. package/package.json +14 -14
  2. package/src/header.tsx +22 -15
  3. package/src/header_a.tsx +6 -30
  4. package/src/header_b.tsx +6 -31
  5. package/src/header_c.tsx +7 -36
  6. package/src/header_d.tsx +6 -30
  7. package/src/header_e.tsx +6 -30
  8. package/src/header_f.tsx +2 -8
  9. package/src/header_g.tsx +3 -11
  10. package/src/helpers/index.tsx +130 -0
  11. package/src/types.ts +136 -3
  12. package/dist/chunk-5DSFRN7E.mjs +0 -1
  13. package/dist/chunk-7SQGIFHM.mjs +0 -1
  14. package/dist/chunk-DN6UM2LP.mjs +0 -1
  15. package/dist/chunk-IZSK2OAC.mjs +0 -1
  16. package/dist/chunk-KCZJVXVR.mjs +0 -1
  17. package/dist/chunk-LA2DIHLF.mjs +0 -1
  18. package/dist/chunk-O23POPQC.mjs +0 -1
  19. package/dist/chunk-PPCMCZ5V.mjs +0 -1
  20. package/dist/chunk-W2QPS3BW.mjs +0 -1
  21. package/dist/header.d.ts +0 -34
  22. package/dist/header.js +0 -1
  23. package/dist/header.mjs +0 -1
  24. package/dist/header_a.d.ts +0 -3
  25. package/dist/header_a.js +0 -1
  26. package/dist/header_a.mjs +0 -1
  27. package/dist/header_b.d.ts +0 -3
  28. package/dist/header_b.js +0 -1
  29. package/dist/header_b.mjs +0 -1
  30. package/dist/header_c.d.ts +0 -3
  31. package/dist/header_c.js +0 -1
  32. package/dist/header_c.mjs +0 -1
  33. package/dist/header_d.d.ts +0 -3
  34. package/dist/header_d.js +0 -1
  35. package/dist/header_d.mjs +0 -1
  36. package/dist/header_e.d.ts +0 -3
  37. package/dist/header_e.js +0 -1
  38. package/dist/header_e.mjs +0 -1
  39. package/dist/header_f.d.ts +0 -3
  40. package/dist/header_f.js +0 -1
  41. package/dist/header_f.mjs +0 -1
  42. package/dist/header_g.d.ts +0 -3
  43. package/dist/header_g.js +0 -1
  44. package/dist/header_g.mjs +0 -1
  45. package/dist/index.d.ts +0 -8
  46. package/dist/index.js +0 -2
  47. package/dist/index.mjs +0 -2
  48. package/dist/types.d.ts +0 -403
  49. package/dist/types.js +0 -1
  50. package/dist/utils/portableText/customBlockStyle.d.ts +0 -2
  51. package/dist/utils/portableText/customBlockStyle.js +0 -1
  52. package/dist/utils/portableText/customBlockStyle.mjs +0 -1
  53. package/dist/utils/portableText.d.ts +0 -0
  54. package/dist/utils/portableText.js +0 -1
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as p}from"./chunk-LA2DIHLF.mjs";import{a as x}from"./chunk-5DSFRN7E.mjs";import{a as o}from"./chunk-7SQGIFHM.mjs";import{a as r}from"./chunk-KCZJVXVR.mjs";import{a as e}from"./chunk-DN6UM2LP.mjs";import{a as t}from"./chunk-IZSK2OAC.mjs";import{a as f}from"./chunk-O23POPQC.mjs";import{a as m}from"./chunk-PPCMCZ5V.mjs";import"./chunk-W2QPS3BW.mjs";export{x as Header,o as Header_A,r as Header_B,e as Header_C,t as Header_D,f as Header_E,m as Header_F,p as Header_G};
package/dist/types.d.ts DELETED
@@ -1,403 +0,0 @@
1
- import { PortableTextComponents } from "@portabletext/react";
2
- import { ButtonProps } from "./header";
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 LabeledRoute extends ConditionalLink {
10
- ariaLabel?: string;
11
- label?: string;
12
- linkTarget?: string;
13
- linkType?: string;
14
- _type?: string;
15
- linkInternal?: any;
16
- }
17
- export interface ConditionalLink {
18
- type?: string;
19
- internalLink?: string | null;
20
- externalLink?: string | null;
21
- }
22
- export interface StatItems {
23
- label?: string;
24
- mainImage?: MainImage;
25
- value?: string;
26
- _key?: string;
27
- _type?: string;
28
- }
29
- export interface Logo extends ConditionalLink {
30
- alt?: string;
31
- linkTarget?: string;
32
- image?: string;
33
- }
34
- export interface Images {
35
- image?: string | null;
36
- video?: string | null;
37
- _key?: string;
38
- _type?: string;
39
- alt?: string;
40
- }
41
- export interface ContactDetails {
42
- addressInfo?: string;
43
- contactInfo?: string;
44
- emailInfo?: string;
45
- _key?: string;
46
- }
47
- export interface SocialLink {
48
- socialMedia?: string | null;
49
- socialMediaLink?: string | null;
50
- _key?: string | null;
51
- _type?: string | null;
52
- socialMediaIcon?: {
53
- alt?: string;
54
- image?: string;
55
- } | null;
56
- socialMediaPlatform?: string | null;
57
- }
58
- export interface LabeledRouteWithKey extends LabeledRoute {
59
- _key?: string;
60
- }
61
- export interface ArrayOfImageTitleAndText {
62
- mainImage?: {
63
- alt?: string;
64
- image?: string;
65
- };
66
- plainText?: string;
67
- title?: string;
68
- _key?: string;
69
- _type?: string;
70
- }
71
- export interface FeaturedItem {
72
- description?: string;
73
- mainImage?: MainImage;
74
- title?: string;
75
- subtitle?: string;
76
- _key?: string;
77
- _type?: string;
78
- }
79
- export interface ArrayOfTitleAndText {
80
- _key?: string;
81
- plainText?: string;
82
- title?: string;
83
- }
84
- export interface BlogPost extends SanityBody {
85
- authors?: Author[] | null;
86
- body?: any;
87
- categories?: Category[] | null;
88
- excerpt?: string | null;
89
- link?: string | null;
90
- mainImage?: string | null;
91
- publishedAt?: string;
92
- seo?: Seo | null;
93
- slug?: SanitySlug | null;
94
- title?: string;
95
- }
96
- export interface Seo {
97
- _type?: string;
98
- seoTitle?: string;
99
- seoDescription?: string;
100
- seoImage?: string;
101
- seoKeywords?: string;
102
- seoSynonyms?: string;
103
- }
104
- export interface SanitySlug {
105
- current?: string;
106
- _type?: "slug";
107
- }
108
- export interface SanityBody {
109
- _createdAt?: string;
110
- _id?: string;
111
- _rev?: string;
112
- _type?: string;
113
- _updatedAt?: string;
114
- }
115
- export interface Author extends SanityBody {
116
- link?: string | null;
117
- bio?: string | null;
118
- name?: string | null;
119
- slug?: SanitySlug | null;
120
- image?: string | null;
121
- profile?: {
122
- alt: string;
123
- image: string;
124
- } | null;
125
- }
126
- export interface Category extends SanityBody {
127
- title?: string;
128
- }
129
- export interface Form {
130
- id?: string | null;
131
- buttonLabel?: string | null;
132
- name?: string | null;
133
- subtitle?: string | null;
134
- fields?: FormFields[] | null;
135
- thankYouPage?: ThankYouPage | null;
136
- }
137
- export interface FormFields {
138
- name?: string;
139
- placeholder?: string;
140
- pricingType?: string;
141
- type?: FormTypes;
142
- _key?: string;
143
- _type?: string;
144
- isRequired?: boolean;
145
- label?: string;
146
- items?: string[];
147
- }
148
- export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
149
- export interface ThankYouPage {
150
- externalLink?: string | null;
151
- internalLink?: string | null;
152
- linkInternal?: any;
153
- linkTarget?: string;
154
- linkType?: string;
155
- type?: string;
156
- }
157
- export interface SectionsProps {
158
- template?: Template;
159
- data?: Sections;
160
- variant?: string | null | undefined;
161
- schema?: Variants;
162
- }
163
- export interface Sections extends SanityBody {
164
- label?: string;
165
- variant?: string;
166
- variants?: Variants;
167
- _key?: string;
168
- }
169
- export interface Variants {
170
- template?: Template;
171
- multipleMenus?: any;
172
- arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
173
- logo?: Logo | null;
174
- imageSrc?: string | null;
175
- primaryButton?: LabeledRoute | null;
176
- secondaryButton?: LabeledRoute | null;
177
- routes?: LabeledRouteWithKey[] | null;
178
- menu?: LabeledRouteWithKey[] | null;
179
- plans?: Plans[] | null;
180
- formLinks?: LabeledRouteWithKey[] | null;
181
- portfolios?: Portfolios[] | null;
182
- portfoliosWithCategories?: PortfoliosWithCategories[] | null;
183
- length?: number;
184
- signInLink?: LabeledRoute | null;
185
- signinLink?: LabeledRoute | null;
186
- tags?: string[] | null;
187
- posts?: BlogPost[] | null;
188
- position?: "left" | "center" | "right";
189
- blogsPerPage?: number | null;
190
- form?: Form | null;
191
- collections?: Collection | null;
192
- products?: CollectionProduct | null;
193
- allProducts?: Collection[];
194
- subtitle?: string | null;
195
- caption?: string | null;
196
- title?: string | null;
197
- plainText?: string | null;
198
- contactDescription?: string | null;
199
- officeInformation?: string | null;
200
- contactEmail?: string | null;
201
- contactNumber?: string | null;
202
- socialLinks?: SocialLink[] | null;
203
- block?: any;
204
- heading?: string | null;
205
- acceptButtonLabel?: string | null;
206
- declineButtonLabel?: string | null;
207
- faqsWithCategories?: FaqsWithCategory[] | null;
208
- faqs?: AskedQuestion[] | null;
209
- arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
210
- description?: string | null;
211
- featuredItems?: FeaturedItem[] | null;
212
- images?: Images[] | null;
213
- mediaItems?: Images[] | null;
214
- contactDetails?: ContactDetails[] | null;
215
- copyright?: string | null;
216
- mainImage?: MainImage | null;
217
- youtubeLink?: string | null;
218
- banner?: any;
219
- stats?: StatItems[] | null;
220
- teams?: Team[] | null;
221
- testimonials?: Testimonial[] | null;
222
- selectStripeAccount?: string;
223
- annualBilling?: string;
224
- monthlyBilling?: string;
225
- productDetails?: ProductDetail[];
226
- btnLabel?: string;
227
- selectAccount?: string;
228
- hashtags?: string[];
229
- numberOfPosts?: number;
230
- text?: string;
231
- button?: LabeledRoute;
232
- features?: string[];
233
- config?: {
234
- enableAnalytics: boolean;
235
- cookiePolicy?: {
236
- siteName: string;
237
- cookiePolicyPage: Reference;
238
- };
239
- consentModalPosition?: string;
240
- };
241
- contactLink?: LabeledRoute;
242
- isFullWidth?: boolean;
243
- subtitlePosition?: "top" | "bottom";
244
- spacing?: number;
245
- isOrdered?: boolean;
246
- startingPosition?: "left" | "right";
247
- headerSections?: HeaderSections[];
248
- }
249
- export interface HeaderBox extends HeaderSections {
250
- isImageLeft?: boolean;
251
- isFullWidth?: boolean;
252
- index?: number;
253
- isOrdered?: boolean;
254
- }
255
- export interface HeaderSections {
256
- _key: string;
257
- title?: string;
258
- subtitle?: string;
259
- description?: string;
260
- mainImage?: {
261
- image: any;
262
- alt?: string;
263
- };
264
- imageTitle?: any;
265
- alignment?: string;
266
- imageHeight?: "sm" | "md" | "lg";
267
- columnContent?: any;
268
- primaryButton?: ButtonProps;
269
- }
270
- export interface Template {
271
- bg?: string;
272
- color?: string;
273
- }
274
- export type Plans = {
275
- _key?: string | null;
276
- _type?: "planItems" | null;
277
- checkoutButtonName?: string | null;
278
- description?: string | null;
279
- monthlyPrice?: string | null;
280
- planType?: string | null;
281
- yearlyPrice?: string | null;
282
- planIncludes?: string[] | null;
283
- primaryButton?: LabeledRoute | null;
284
- } & Record<string, string>;
285
- export interface Portfolios {
286
- dateAdded?: string | null;
287
- mainImage?: {
288
- image?: string | null;
289
- alt?: string | null;
290
- } | null;
291
- primaryButton?: LabeledRoute | null;
292
- title?: string | null;
293
- _key?: string | null;
294
- _type?: string | null;
295
- }
296
- export interface PortfoliosWithCategories {
297
- category?: string | null;
298
- content?: Content[] | null;
299
- primaryButton?: LabeledRoute | null;
300
- _key?: string | null;
301
- _type?: string | null;
302
- }
303
- export interface Content extends Portfolios {
304
- description?: string | null;
305
- subtitle?: string | null;
306
- }
307
- export interface Collection extends SanityBody {
308
- collectionInfoVariant?: {
309
- variant?: string;
310
- } | null;
311
- name?: string | null;
312
- products?: CollectionProduct[] | null;
313
- sections?: any;
314
- seo?: Seo | null;
315
- slug?: SanitySlug | null;
316
- }
317
- export interface CollectionProduct extends SanityBody {
318
- compareToPrice?: number | null;
319
- description?: string | null;
320
- ecwidProductId?: number | null;
321
- name?: string | null;
322
- price?: number | null;
323
- productInfo?: ProductInfo | null;
324
- productInfoVariant?: {
325
- variant?: string;
326
- } | null;
327
- sections?: any;
328
- seo?: Seo | null;
329
- slug?: SanitySlug | null;
330
- }
331
- interface ProductInfo {
332
- btnLabel?: string | null;
333
- images?: ProductInfoImage[] | null;
334
- productDetails?: ProductDetail[] | null;
335
- socialLinks?: SocialLink[] | null;
336
- subtitle?: string | null;
337
- }
338
- export interface ProductDetail {
339
- blockContent?: any;
340
- contentType?: string;
341
- tabName?: string;
342
- _key?: string;
343
- [key: string]: any;
344
- }
345
- interface ProductInfoImage {
346
- alt?: string | null;
347
- _key: string;
348
- _type: string;
349
- image?: string | null;
350
- }
351
- export interface FaqsWithCategory {
352
- askedQuestions?: AskedQuestion[] | null;
353
- category?: string | null;
354
- _key?: string;
355
- _type?: string;
356
- }
357
- export interface AskedQuestion {
358
- answer?: string | null;
359
- question?: string | null;
360
- hidden?: boolean;
361
- _key?: string;
362
- _type?: string;
363
- }
364
- export interface Team {
365
- jobTitle?: string;
366
- mainImage?: MainImage;
367
- name?: string;
368
- plainText?: string;
369
- _key?: string;
370
- _type?: string;
371
- }
372
- export interface Testimonial {
373
- jobTitle?: string;
374
- mainImage?: MainImage;
375
- name?: string;
376
- rating?: string;
377
- testimony?: string;
378
- _key?: string;
379
- _type?: string;
380
- }
381
- export declare interface Reference {
382
- _type: string;
383
- _ref: string;
384
- _key?: string;
385
- _weak?: boolean;
386
- _strengthenOnPublish?: {
387
- type: string;
388
- weak?: boolean;
389
- template?: {
390
- id: string;
391
- params: Record<string, string | number | boolean>;
392
- };
393
- };
394
- }
395
- export type MyPortableTextComponents = PortableTextComponents & {
396
- code?: ({ value }: {
397
- value: {
398
- language?: string;
399
- code?: string;
400
- };
401
- }) => JSX.Element;
402
- };
403
- export {};
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of a(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=s(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);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";