tinacms 0.68.6 → 0.68.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.
package/dist/index.js CHANGED
@@ -59,6 +59,7 @@ var __objRest = (source, exclude) => {
59
59
  var G__namespace = /* @__PURE__ */ _interopNamespace(G);
60
60
  var set__default = /* @__PURE__ */ _interopDefaultLegacy(set);
61
61
  var React__default = /* @__PURE__ */ _interopDefaultLegacy(React);
62
+ var React__namespace = /* @__PURE__ */ _interopNamespace(React);
62
63
  var gql__default = /* @__PURE__ */ _interopDefaultLegacy(gql$1);
63
64
  var yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
64
65
  var styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
@@ -2467,19 +2468,25 @@ mutation addPendingDocumentMutation(
2467
2468
  }
2468
2469
  }`, { variables: { collection, relativePath } });
2469
2470
  }
2470
- async fetchCollection(collectionName, includeDocuments) {
2471
+ async fetchCollection(collectionName, includeDocuments, after) {
2471
2472
  if (includeDocuments === true) {
2472
2473
  if (this.useDataLayer) {
2473
2474
  const sort = this.schema.getIsTitleFieldName(collectionName);
2474
2475
  const response = await this.api.request(`#graphql
2475
- query($collection: String!, $includeDocuments: Boolean!, $sort: String){
2476
+ query($collection: String!, $includeDocuments: Boolean!, $sort: String, $limit: Float, $after: String){
2476
2477
  collection(collection: $collection){
2477
2478
  name
2478
2479
  label
2479
2480
  format
2480
2481
  templates
2481
- documents(sort: $sort) @include(if: $includeDocuments) {
2482
+ documents(sort: $sort, after: $after, first: $limit) @include(if: $includeDocuments) {
2482
2483
  totalCount
2484
+ pageInfo {
2485
+ hasPreviousPage
2486
+ hasNextPage
2487
+ startCursor
2488
+ endCursor
2489
+ }
2483
2490
  edges {
2484
2491
  node {
2485
2492
  ... on Document {
@@ -2498,7 +2505,15 @@ mutation addPendingDocumentMutation(
2498
2505
  }
2499
2506
  }
2500
2507
  }
2501
- }`, { variables: { collection: collectionName, includeDocuments, sort } });
2508
+ }`, {
2509
+ variables: {
2510
+ collection: collectionName,
2511
+ includeDocuments,
2512
+ sort,
2513
+ limit: 10,
2514
+ after
2515
+ }
2516
+ });
2502
2517
  return response.collection;
2503
2518
  } else {
2504
2519
  const response = await this.api.request(`#graphql
@@ -2514,7 +2529,6 @@ mutation addPendingDocumentMutation(
2514
2529
  node {
2515
2530
  ... on Document {
2516
2531
  _sys {
2517
- # TODO: only include title if we need to
2518
2532
  template
2519
2533
  breadcrumbs
2520
2534
  path
@@ -2729,7 +2743,885 @@ mutation addPendingDocumentMutation(
2729
2743
  }))));
2730
2744
  };
2731
2745
  const TinaCloudAuthWall = TinaCloudProvider;
2732
- var styles = '*, ::before, ::after {\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(0 132 255 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.tina-tailwind .pointer-events-auto {\n pointer-events: auto;\n}\n.tina-tailwind .static {\n position: static;\n}\n.tina-tailwind .fixed {\n position: fixed;\n}\n.tina-tailwind .absolute {\n position: absolute;\n}\n.tina-tailwind .relative {\n position: relative;\n}\n.tina-tailwind .inset-0 {\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n.tina-tailwind .left-0 {\n left: 0px;\n}\n.tina-tailwind .top-0 {\n top: 0px;\n}\n.tina-tailwind .top-8 {\n top: 32px;\n}\n.tina-tailwind .right-0 {\n right: 0px;\n}\n.tina-tailwind .top-10 {\n top: 40px;\n}\n.tina-tailwind .top-4 {\n top: 16px;\n}\n.tina-tailwind .z-overlay {\n z-index: 10600;\n}\n.tina-tailwind .z-menu {\n z-index: 9800;\n}\n.tina-tailwind .z-50 {\n z-index: 50;\n}\n.tina-tailwind .mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.tina-tailwind .-ml-px {\n margin-left: -1px;\n}\n.tina-tailwind .mr-2 {\n margin-right: 8px;\n}\n.tina-tailwind .mb-2 {\n margin-bottom: 8px;\n}\n.tina-tailwind .mb-1 {\n margin-bottom: 4px;\n}\n.tina-tailwind .-mt-0\\.5 {\n margin-top: -2px;\n}\n.tina-tailwind .-mt-0 {\n margin-top: -0px;\n}\n.tina-tailwind .ml-1 {\n margin-left: 4px;\n}\n.tina-tailwind .mt-2 {\n margin-top: 8px;\n}\n.tina-tailwind .mr-1\\.5 {\n margin-right: 6px;\n}\n.tina-tailwind .mr-1 {\n margin-right: 4px;\n}\n.tina-tailwind .block {\n display: block;\n}\n.tina-tailwind .inline-block {\n display: inline-block;\n}\n.tina-tailwind .inline {\n display: inline;\n}\n.tina-tailwind .flex {\n display: flex;\n}\n.tina-tailwind .inline-flex {\n display: inline-flex;\n}\n.tina-tailwind .table {\n display: table;\n}\n.tina-tailwind .h-screen {\n height: 100vh;\n}\n.tina-tailwind .h-auto {\n height: auto;\n}\n.tina-tailwind .h-full {\n height: 100%;\n}\n.tina-tailwind .h-6 {\n height: 24px;\n}\n.tina-tailwind .h-7 {\n height: 28px;\n}\n.tina-tailwind .h-10 {\n height: 40px;\n}\n.tina-tailwind .h-5 {\n height: 20px;\n}\n.tina-tailwind .h-12 {\n height: 48px;\n}\n.tina-tailwind .w-full {\n width: 100%;\n}\n.tina-tailwind .w-10 {\n width: 40px;\n}\n.tina-tailwind .w-auto {\n width: auto;\n}\n.tina-tailwind .w-5 {\n width: 20px;\n}\n.tina-tailwind .w-56 {\n width: 224px;\n}\n.tina-tailwind .w-0 {\n width: 0px;\n}\n.tina-tailwind .w-6 {\n width: 24px;\n}\n.tina-tailwind .max-w-lg {\n max-width: 32rem;\n}\n.tina-tailwind .max-w-screen-xl {\n max-width: 1280px;\n}\n.tina-tailwind .max-w-form {\n max-width: 900px;\n}\n.tina-tailwind .max-w-full {\n max-width: 100%;\n}\n.tina-tailwind .flex-1 {\n flex: 1 1 0%;\n}\n.tina-tailwind .flex-shrink-0 {\n flex-shrink: 0;\n}\n.tina-tailwind .flex-grow-0 {\n flex-grow: 0;\n}\n.tina-tailwind .table-auto {\n table-layout: auto;\n}\n.tina-tailwind .origin-top-right {\n transform-origin: top right;\n}\n.tina-tailwind .-translate-x-full {\n --tw-translate-x: -100%;\n 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));\n}\n.tina-tailwind .translate-x-0 {\n --tw-translate-x: 0px;\n 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));\n}\n.tina-tailwind .translate-x-full {\n --tw-translate-x: 100%;\n 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));\n}\n.tina-tailwind .scale-95 {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n 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));\n}\n.tina-tailwind .scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n 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));\n}\n.tina-tailwind .transform {\n 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));\n}\n.tina-tailwind .cursor-pointer {\n cursor: pointer;\n}\n.tina-tailwind .flex-col {\n flex-direction: column;\n}\n.tina-tailwind .items-end {\n align-items: flex-end;\n}\n.tina-tailwind .items-center {\n align-items: center;\n}\n.tina-tailwind .items-stretch {\n align-items: stretch;\n}\n.tina-tailwind .justify-end {\n justify-content: flex-end;\n}\n.tina-tailwind .justify-center {\n justify-content: center;\n}\n.tina-tailwind .justify-between {\n justify-content: space-between;\n}\n.tina-tailwind .gap-0\\.5 {\n gap: 2px;\n}\n.tina-tailwind .gap-0 {\n gap: 0px;\n}\n.tina-tailwind .gap-4 {\n gap: 16px;\n}\n.tina-tailwind .gap-3 {\n gap: 12px;\n}\n.tina-tailwind .divide-y > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n.tina-tailwind .divide-gray-150 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(230 227 239 / var(--tw-divide-opacity));\n}\n.tina-tailwind .overflow-hidden {\n overflow: hidden;\n}\n.tina-tailwind .overflow-y-auto {\n overflow-y: auto;\n}\n.tina-tailwind .whitespace-nowrap {\n white-space: nowrap;\n}\n.tina-tailwind .rounded-lg {\n border-radius: 8px;\n}\n.tina-tailwind .rounded {\n border-radius: 4px;\n}\n.tina-tailwind .rounded-full {\n border-radius: 9999px;\n}\n.tina-tailwind .rounded-md {\n border-radius: 6px;\n}\n.tina-tailwind .rounded-r-md {\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n}\n.tina-tailwind .border {\n border-width: 1px;\n}\n.tina-tailwind .border-b {\n border-bottom-width: 1px;\n}\n.tina-tailwind .border-gray-150 {\n --tw-border-opacity: 1;\n border-color: rgb(230 227 239 / var(--tw-border-opacity));\n}\n.tina-tailwind .border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(225 221 236 / var(--tw-border-opacity));\n}\n.tina-tailwind .bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.tina-tailwind .bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(246 246 249 / var(--tw-bg-opacity));\n}\n.tina-tailwind .bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(0 132 255 / var(--tw-bg-opacity));\n}\n.tina-tailwind .bg-gradient-to-b {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.tina-tailwind .bg-gradient-to-br {\n background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));\n}\n.tina-tailwind .from-blue-900 {\n --tw-gradient-from: #1D2C6C;\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(29 44 108 / 0));\n}\n.tina-tailwind .from-gray-800 {\n --tw-gradient-from: #363145;\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(54 49 69 / 0));\n}\n.tina-tailwind .via-gray-900 {\n --tw-gradient-stops: var(--tw-gradient-from), #252336, var(--tw-gradient-to, rgb(37 35 54 / 0));\n}\n.tina-tailwind .to-gray-900 {\n --tw-gradient-to: #252336;\n}\n.tina-tailwind .to-black {\n --tw-gradient-to: #000;\n}\n.tina-tailwind .px-4 {\n padding-left: 16px;\n padding-right: 16px;\n}\n.tina-tailwind .py-6 {\n padding-top: 24px;\n padding-bottom: 24px;\n}\n.tina-tailwind .px-5 {\n padding-left: 20px;\n padding-right: 20px;\n}\n.tina-tailwind .py-4 {\n padding-top: 16px;\n padding-bottom: 16px;\n}\n.tina-tailwind .px-12 {\n padding-left: 48px;\n padding-right: 48px;\n}\n.tina-tailwind .py-10 {\n padding-top: 40px;\n padding-bottom: 40px;\n}\n.tina-tailwind .px-20 {\n padding-left: 80px;\n padding-right: 80px;\n}\n.tina-tailwind .px-6 {\n padding-left: 24px;\n padding-right: 24px;\n}\n.tina-tailwind .py-1 {\n padding-top: 4px;\n padding-bottom: 4px;\n}\n.tina-tailwind .py-2 {\n padding-top: 8px;\n padding-bottom: 8px;\n}\n.tina-tailwind .py-5 {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n.tina-tailwind .pt-4 {\n padding-top: 16px;\n}\n.tina-tailwind .pb-4 {\n padding-bottom: 16px;\n}\n.tina-tailwind .pt-18 {\n padding-top: 72px;\n}\n.tina-tailwind .pl-18 {\n padding-left: 72px;\n}\n.tina-tailwind .text-left {\n text-align: left;\n}\n.tina-tailwind .text-center {\n text-align: center;\n}\n.tina-tailwind .font-sans {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n.tina-tailwind .text-2xl {\n font-size: 24px;\n line-height: 1.33;\n}\n.tina-tailwind .text-base {\n font-size: 16px;\n line-height: 1.5;\n}\n.tina-tailwind .text-sm {\n font-size: 14px;\n line-height: 1.43;\n}\n.tina-tailwind .text-xl {\n font-size: 20px;\n line-height: 1.4;\n}\n.tina-tailwind .text-md {\n font-size: 16px;\n line-height: 1.5;\n}\n.tina-tailwind .text-xs {\n font-size: 13px;\n line-height: 1.33;\n}\n.tina-tailwind .font-medium {\n font-weight: 500;\n}\n.tina-tailwind .uppercase {\n text-transform: uppercase;\n}\n.tina-tailwind .italic {\n font-style: italic;\n}\n.tina-tailwind .leading-normal {\n line-height: 1.5;\n}\n.tina-tailwind .leading-tight {\n line-height: 1.25;\n}\n.tina-tailwind .leading-5 {\n line-height: 20px;\n}\n.tina-tailwind .tracking-wide {\n letter-spacing: 0.025em;\n}\n.tina-tailwind .text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(86 81 101 / var(--tw-text-opacity));\n}\n.tina-tailwind .text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(67 62 82 / var(--tw-text-opacity));\n}\n.tina-tailwind .text-blue-600 {\n --tw-text-opacity: 1;\n color: rgb(5 116 228 / var(--tw-text-opacity));\n}\n.tina-tailwind .text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(113 108 127 / var(--tw-text-opacity));\n}\n.tina-tailwind .text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(145 140 158 / var(--tw-text-opacity));\n}\n.tina-tailwind .text-current {\n color: currentColor;\n}\n.tina-tailwind .text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.tina-tailwind .text-gray-800 {\n --tw-text-opacity: 1;\n color: rgb(54 49 69 / var(--tw-text-opacity));\n}\n.tina-tailwind .text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(37 35 54 / var(--tw-text-opacity));\n}\n.tina-tailwind .text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity));\n}\n.tina-tailwind .underline {\n text-decoration-line: underline;\n}\n.tina-tailwind .opacity-100 {\n opacity: 1;\n}\n.tina-tailwind .opacity-0 {\n opacity: 0;\n}\n.tina-tailwind .opacity-80 {\n opacity: .8;\n}\n.tina-tailwind .opacity-90 {\n opacity: .9;\n}\n.tina-tailwind .opacity-50 {\n opacity: .5;\n}\n.tina-tailwind .opacity-70 {\n opacity: .7;\n}\n.tina-tailwind .shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tina-tailwind .shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tina-tailwind .shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tina-tailwind .ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.tina-tailwind .ring-black {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));\n}\n.tina-tailwind .ring-opacity-5 {\n --tw-ring-opacity: .05;\n}\n.tina-tailwind .filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.tina-tailwind .transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.tina-tailwind .transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.tina-tailwind .transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.tina-tailwind .transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.tina-tailwind .duration-300 {\n transition-duration: 300ms;\n}\n.tina-tailwind .duration-200 {\n transition-duration: 200ms;\n}\n.tina-tailwind .duration-150 {\n transition-duration: 150ms;\n}\n.tina-tailwind .duration-100 {\n transition-duration: 100ms;\n}\n.tina-tailwind .duration-75 {\n transition-duration: 75ms;\n}\n.tina-tailwind .ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.tina-tailwind .ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.tina-tailwind .icon-parent svg {\n fill: currentColor;\n }\n\n.tina-tailwind {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 16px;\n line-height: 1.5;\n --tw-text-opacity: 1;\n color: rgb(86 81 101 / var(--tw-text-opacity));\n}\n\n.tina-tailwind .hover\\:bg-blue-600:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(5 116 228 / var(--tw-bg-opacity));\n}\n\n.tina-tailwind .hover\\:text-blue-600:hover {\n --tw-text-opacity: 1;\n color: rgb(5 116 228 / var(--tw-text-opacity));\n}\n\n.tina-tailwind .hover\\:text-blue-400:hover {\n --tw-text-opacity: 1;\n color: rgb(34 150 254 / var(--tw-text-opacity));\n}\n\n.tina-tailwind .hover\\:opacity-100:hover {\n opacity: 1;\n}\n\n.tina-tailwind .focus\\:text-blue-400:focus {\n --tw-text-opacity: 1;\n color: rgb(34 150 254 / var(--tw-text-opacity));\n}\n\n.tina-tailwind .focus\\:underline:focus {\n text-decoration-line: underline;\n}\n\n.tina-tailwind .focus\\:shadow-outline:focus {\n --tw-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);\n --tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.tina-tailwind .focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.tina-tailwind .focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.tina-tailwind .focus\\:ring-blue-500:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(0 132 255 / var(--tw-ring-opacity));\n}\n';
2746
+ var styles = `.tina-tailwind {
2747
+ line-height: 1.5;
2748
+ -webkit-text-size-adjust: 100%;
2749
+ -moz-tab-size: 4;
2750
+ tab-size: 4;
2751
+ }
2752
+
2753
+ .tina-tailwind *,
2754
+ .tina-tailwind ::before,
2755
+ .tina-tailwind ::after {
2756
+ box-sizing: border-box;
2757
+ border-width: 0;
2758
+ border-style: solid;
2759
+ border-color: transparent;
2760
+ }
2761
+
2762
+ .tina-tailwind ::before,
2763
+ .tina-tailwind ::after {
2764
+ --tw-content: '';
2765
+ }
2766
+
2767
+ .tina-tailwind hr {
2768
+ height: 0; /* 1 */
2769
+ color: inherit; /* 2 */
2770
+ border-top-width: 1px; /* 3 */
2771
+ }
2772
+
2773
+ .tina-tailwind abbr:where([title]) {
2774
+ text-decoration: underline dotted;
2775
+ }
2776
+
2777
+ .tina-tailwind h1,
2778
+ .tina-tailwind h2,
2779
+ .tina-tailwind h3,
2780
+ .tina-tailwind h4,
2781
+ .tina-tailwind h5,
2782
+ .tina-tailwind h6 {
2783
+ font-size: inherit;
2784
+ font-weight: inherit;
2785
+ }
2786
+
2787
+ .tina-tailwind a {
2788
+ color: inherit;
2789
+ text-decoration: inherit;
2790
+ }
2791
+
2792
+ .tina-tailwind b,
2793
+ .tina-tailwind strong {
2794
+ font-weight: bolder;
2795
+ }
2796
+
2797
+ .tina-tailwind code,
2798
+ .tina-tailwind kbd,
2799
+ .tina-tailwind samp,
2800
+ .tina-tailwind pre {
2801
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
2802
+ font-size: 1em; /* 2 */
2803
+ }
2804
+
2805
+ .tina-tailwind small {
2806
+ font-size: 80%;
2807
+ }
2808
+
2809
+ .tina-tailwind sub,
2810
+ .tina-tailwind sup {
2811
+ font-size: 75%;
2812
+ line-height: 0;
2813
+ position: relative;
2814
+ vertical-align: baseline;
2815
+ }
2816
+
2817
+ .tina-tailwind sub {
2818
+ bottom: -0.25em;
2819
+ }
2820
+
2821
+ .tina-tailwind sup {
2822
+ top: -0.5em;
2823
+ }
2824
+
2825
+ .tina-tailwind table {
2826
+ text-indent: 0; /* 1 */
2827
+ border-color: inherit; /* 2 */
2828
+ border-collapse: collapse; /* 3 */
2829
+ }
2830
+
2831
+ .tina-tailwind button,
2832
+ .tina-tailwind input,
2833
+ .tina-tailwind optgroup,
2834
+ .tina-tailwind select,
2835
+ .tina-tailwind textarea {
2836
+ font-family: inherit; /* 1 */
2837
+ font-size: 100%; /* 1 */
2838
+ line-height: inherit; /* 1 */
2839
+ color: inherit; /* 1 */
2840
+ margin: 0; /* 2 */
2841
+ padding: 0; /* 3 */
2842
+ }
2843
+
2844
+ .tina-tailwind button,
2845
+ .tina-tailwind select {
2846
+ text-transform: none;
2847
+ }
2848
+
2849
+ .tina-tailwind button,
2850
+ .tina-tailwind [type='button'],
2851
+ .tina-tailwind [type='reset'],
2852
+ .tina-tailwind [type='submit'] {
2853
+ -webkit-appearance: button; /* 1 */
2854
+ background-color: transparent; /* 2 */
2855
+ background-image: none; /* 2 */
2856
+ }
2857
+
2858
+ .tina-tailwind :-moz-focusring {
2859
+ outline: auto;
2860
+ }
2861
+
2862
+ .tina-tailwind :-moz-ui-invalid {
2863
+ box-shadow: none;
2864
+ }
2865
+
2866
+ .tina-tailwind progress {
2867
+ vertical-align: baseline;
2868
+ }
2869
+
2870
+ .tina-tailwind ::-webkit-inner-spin-button,
2871
+ .tina-tailwind ::-webkit-outer-spin-button {
2872
+ height: auto;
2873
+ }
2874
+
2875
+ .tina-tailwind [type='search'] {
2876
+ -webkit-appearance: textfield; /* 1 */
2877
+ outline-offset: -2px; /* 2 */
2878
+ }
2879
+
2880
+ .tina-tailwind ::-webkit-search-decoration {
2881
+ -webkit-appearance: none;
2882
+ }
2883
+
2884
+ .tina-tailwind ::-webkit-file-upload-button {
2885
+ -webkit-appearance: button; /* 1 */
2886
+ font: inherit; /* 2 */
2887
+ }
2888
+
2889
+ .tina-tailwind summary {
2890
+ display: list-item;
2891
+ }
2892
+
2893
+ .tina-tailwind blockquote,
2894
+ .tina-tailwind dl,
2895
+ .tina-tailwind dd,
2896
+ .tina-tailwind h1,
2897
+ .tina-tailwind h2,
2898
+ .tina-tailwind h3,
2899
+ .tina-tailwind h4,
2900
+ .tina-tailwind h5,
2901
+ .tina-tailwind h6,
2902
+ .tina-tailwind hr,
2903
+ .tina-tailwind figure,
2904
+ .tina-tailwind p,
2905
+ .tina-tailwind pre {
2906
+ margin: 0;
2907
+ }
2908
+
2909
+ .tina-tailwind fieldset {
2910
+ margin: 0;
2911
+ padding: 0;
2912
+ }
2913
+
2914
+ .tina-tailwind legend {
2915
+ padding: 0;
2916
+ }
2917
+
2918
+ .tina-tailwind ol,
2919
+ .tina-tailwind ul,
2920
+ .tina-tailwind menu {
2921
+ list-style: none;
2922
+ margin: 0;
2923
+ padding: 0;
2924
+ }
2925
+
2926
+ .tina-tailwind li:before {
2927
+ display: none;
2928
+ }
2929
+
2930
+ .tina-tailwind textarea {
2931
+ resize: vertical;
2932
+ }
2933
+
2934
+ .tina-tailwind input::placeholder,
2935
+ .tina-tailwind textarea::placeholder {
2936
+ opacity: 1; /* 1 */
2937
+ color: #918c9e; /* 2 */
2938
+ }
2939
+
2940
+ .tina-tailwind button,
2941
+ .tina-tailwind [role='button'] {
2942
+ cursor: pointer;
2943
+ }
2944
+
2945
+ .tina-tailwind :disabled {
2946
+ cursor: default;
2947
+ }
2948
+
2949
+ .tina-tailwind img,
2950
+ .tina-tailwind svg,
2951
+ .tina-tailwind video,
2952
+ .tina-tailwind canvas,
2953
+ .tina-tailwind audio,
2954
+ .tina-tailwind iframe,
2955
+ .tina-tailwind embed,
2956
+ .tina-tailwind object {
2957
+ display: block; /* 1 */
2958
+ vertical-align: middle; /* 2 */
2959
+ }
2960
+
2961
+ .tina-tailwind img,
2962
+ .tina-tailwind video {
2963
+ max-width: 100%;
2964
+ height: auto;
2965
+ }
2966
+
2967
+ .tina-tailwind [hidden] {
2968
+ display: none;
2969
+ }
2970
+ *, ::before, ::after {
2971
+ --tw-translate-x: 0;
2972
+ --tw-translate-y: 0;
2973
+ --tw-rotate: 0;
2974
+ --tw-skew-x: 0;
2975
+ --tw-skew-y: 0;
2976
+ --tw-scale-x: 1;
2977
+ --tw-scale-y: 1;
2978
+ --tw-pan-x: ;
2979
+ --tw-pan-y: ;
2980
+ --tw-pinch-zoom: ;
2981
+ --tw-scroll-snap-strictness: proximity;
2982
+ --tw-ordinal: ;
2983
+ --tw-slashed-zero: ;
2984
+ --tw-numeric-figure: ;
2985
+ --tw-numeric-spacing: ;
2986
+ --tw-numeric-fraction: ;
2987
+ --tw-ring-inset: ;
2988
+ --tw-ring-offset-width: 0px;
2989
+ --tw-ring-offset-color: #fff;
2990
+ --tw-ring-color: rgb(0 132 255 / 0.5);
2991
+ --tw-ring-offset-shadow: 0 0 #0000;
2992
+ --tw-ring-shadow: 0 0 #0000;
2993
+ --tw-shadow: 0 0 #0000;
2994
+ --tw-shadow-colored: 0 0 #0000;
2995
+ --tw-blur: ;
2996
+ --tw-brightness: ;
2997
+ --tw-contrast: ;
2998
+ --tw-grayscale: ;
2999
+ --tw-hue-rotate: ;
3000
+ --tw-invert: ;
3001
+ --tw-saturate: ;
3002
+ --tw-sepia: ;
3003
+ --tw-drop-shadow: ;
3004
+ --tw-backdrop-blur: ;
3005
+ --tw-backdrop-brightness: ;
3006
+ --tw-backdrop-contrast: ;
3007
+ --tw-backdrop-grayscale: ;
3008
+ --tw-backdrop-hue-rotate: ;
3009
+ --tw-backdrop-invert: ;
3010
+ --tw-backdrop-opacity: ;
3011
+ --tw-backdrop-saturate: ;
3012
+ --tw-backdrop-sepia: ;
3013
+ }
3014
+ .tina-tailwind .pointer-events-auto {
3015
+ pointer-events: auto;
3016
+ }
3017
+ .tina-tailwind .static {
3018
+ position: static;
3019
+ }
3020
+ .tina-tailwind .fixed {
3021
+ position: fixed;
3022
+ }
3023
+ .tina-tailwind .absolute {
3024
+ position: absolute;
3025
+ }
3026
+ .tina-tailwind .relative {
3027
+ position: relative;
3028
+ }
3029
+ .tina-tailwind .inset-0 {
3030
+ top: 0px;
3031
+ right: 0px;
3032
+ bottom: 0px;
3033
+ left: 0px;
3034
+ }
3035
+ .tina-tailwind .left-0 {
3036
+ left: 0px;
3037
+ }
3038
+ .tina-tailwind .top-0 {
3039
+ top: 0px;
3040
+ }
3041
+ .tina-tailwind .top-8 {
3042
+ top: 32px;
3043
+ }
3044
+ .tina-tailwind .right-0 {
3045
+ right: 0px;
3046
+ }
3047
+ .tina-tailwind .top-10 {
3048
+ top: 40px;
3049
+ }
3050
+ .tina-tailwind .top-4 {
3051
+ top: 16px;
3052
+ }
3053
+ .tina-tailwind .z-overlay {
3054
+ z-index: 10600;
3055
+ }
3056
+ .tina-tailwind .z-menu {
3057
+ z-index: 9800;
3058
+ }
3059
+ .tina-tailwind .z-50 {
3060
+ z-index: 50;
3061
+ }
3062
+ .tina-tailwind .mx-auto {
3063
+ margin-left: auto;
3064
+ margin-right: auto;
3065
+ }
3066
+ .tina-tailwind .-ml-px {
3067
+ margin-left: -1px;
3068
+ }
3069
+ .tina-tailwind .mr-2 {
3070
+ margin-right: 8px;
3071
+ }
3072
+ .tina-tailwind .mb-2 {
3073
+ margin-bottom: 8px;
3074
+ }
3075
+ .tina-tailwind .mb-1 {
3076
+ margin-bottom: 4px;
3077
+ }
3078
+ .tina-tailwind .-mt-0\\.5 {
3079
+ margin-top: -2px;
3080
+ }
3081
+ .tina-tailwind .-mt-0 {
3082
+ margin-top: -0px;
3083
+ }
3084
+ .tina-tailwind .ml-1 {
3085
+ margin-left: 4px;
3086
+ }
3087
+ .tina-tailwind .mt-2 {
3088
+ margin-top: 8px;
3089
+ }
3090
+ .tina-tailwind .mr-1\\.5 {
3091
+ margin-right: 6px;
3092
+ }
3093
+ .tina-tailwind .mr-1 {
3094
+ margin-right: 4px;
3095
+ }
3096
+ .tina-tailwind .block {
3097
+ display: block;
3098
+ }
3099
+ .tina-tailwind .inline-block {
3100
+ display: inline-block;
3101
+ }
3102
+ .tina-tailwind .inline {
3103
+ display: inline;
3104
+ }
3105
+ .tina-tailwind .flex {
3106
+ display: flex;
3107
+ }
3108
+ .tina-tailwind .inline-flex {
3109
+ display: inline-flex;
3110
+ }
3111
+ .tina-tailwind .table {
3112
+ display: table;
3113
+ }
3114
+ .tina-tailwind .h-screen {
3115
+ height: 100vh;
3116
+ }
3117
+ .tina-tailwind .h-auto {
3118
+ height: auto;
3119
+ }
3120
+ .tina-tailwind .h-full {
3121
+ height: 100%;
3122
+ }
3123
+ .tina-tailwind .h-6 {
3124
+ height: 24px;
3125
+ }
3126
+ .tina-tailwind .h-7 {
3127
+ height: 28px;
3128
+ }
3129
+ .tina-tailwind .h-10 {
3130
+ height: 40px;
3131
+ }
3132
+ .tina-tailwind .h-5 {
3133
+ height: 20px;
3134
+ }
3135
+ .tina-tailwind .h-12 {
3136
+ height: 48px;
3137
+ }
3138
+ .tina-tailwind .w-full {
3139
+ width: 100%;
3140
+ }
3141
+ .tina-tailwind .w-10 {
3142
+ width: 40px;
3143
+ }
3144
+ .tina-tailwind .w-auto {
3145
+ width: auto;
3146
+ }
3147
+ .tina-tailwind .w-5 {
3148
+ width: 20px;
3149
+ }
3150
+ .tina-tailwind .w-56 {
3151
+ width: 224px;
3152
+ }
3153
+ .tina-tailwind .w-0 {
3154
+ width: 0px;
3155
+ }
3156
+ .tina-tailwind .w-6 {
3157
+ width: 24px;
3158
+ }
3159
+ .tina-tailwind .max-w-lg {
3160
+ max-width: 32rem;
3161
+ }
3162
+ .tina-tailwind .max-w-screen-xl {
3163
+ max-width: 1280px;
3164
+ }
3165
+ .tina-tailwind .max-w-form {
3166
+ max-width: 900px;
3167
+ }
3168
+ .tina-tailwind .max-w-full {
3169
+ max-width: 100%;
3170
+ }
3171
+ .tina-tailwind .flex-1 {
3172
+ flex: 1 1 0%;
3173
+ }
3174
+ .tina-tailwind .flex-shrink-0 {
3175
+ flex-shrink: 0;
3176
+ }
3177
+ .tina-tailwind .flex-grow-0 {
3178
+ flex-grow: 0;
3179
+ }
3180
+ .tina-tailwind .table-auto {
3181
+ table-layout: auto;
3182
+ }
3183
+ .tina-tailwind .origin-top-right {
3184
+ transform-origin: top right;
3185
+ }
3186
+ .tina-tailwind .-translate-x-full {
3187
+ --tw-translate-x: -100%;
3188
+ 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));
3189
+ }
3190
+ .tina-tailwind .translate-x-0 {
3191
+ --tw-translate-x: 0px;
3192
+ 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));
3193
+ }
3194
+ .tina-tailwind .translate-x-full {
3195
+ --tw-translate-x: 100%;
3196
+ 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));
3197
+ }
3198
+ .tina-tailwind .scale-95 {
3199
+ --tw-scale-x: .95;
3200
+ --tw-scale-y: .95;
3201
+ 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));
3202
+ }
3203
+ .tina-tailwind .scale-100 {
3204
+ --tw-scale-x: 1;
3205
+ --tw-scale-y: 1;
3206
+ 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));
3207
+ }
3208
+ .tina-tailwind .transform {
3209
+ 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));
3210
+ }
3211
+ .tina-tailwind .cursor-pointer {
3212
+ cursor: pointer;
3213
+ }
3214
+ .tina-tailwind .flex-col {
3215
+ flex-direction: column;
3216
+ }
3217
+ .tina-tailwind .items-end {
3218
+ align-items: flex-end;
3219
+ }
3220
+ .tina-tailwind .items-center {
3221
+ align-items: center;
3222
+ }
3223
+ .tina-tailwind .items-stretch {
3224
+ align-items: stretch;
3225
+ }
3226
+ .tina-tailwind .justify-end {
3227
+ justify-content: flex-end;
3228
+ }
3229
+ .tina-tailwind .justify-center {
3230
+ justify-content: center;
3231
+ }
3232
+ .tina-tailwind .justify-between {
3233
+ justify-content: space-between;
3234
+ }
3235
+ .tina-tailwind .gap-0\\.5 {
3236
+ gap: 2px;
3237
+ }
3238
+ .tina-tailwind .gap-0 {
3239
+ gap: 0px;
3240
+ }
3241
+ .tina-tailwind .gap-4 {
3242
+ gap: 16px;
3243
+ }
3244
+ .tina-tailwind .gap-3 {
3245
+ gap: 12px;
3246
+ }
3247
+ .tina-tailwind .divide-y > :not([hidden]) ~ :not([hidden]) {
3248
+ --tw-divide-y-reverse: 0;
3249
+ border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
3250
+ border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
3251
+ }
3252
+ .tina-tailwind .divide-gray-150 > :not([hidden]) ~ :not([hidden]) {
3253
+ --tw-divide-opacity: 1;
3254
+ border-color: rgb(230 227 239 / var(--tw-divide-opacity));
3255
+ }
3256
+ .tina-tailwind .overflow-hidden {
3257
+ overflow: hidden;
3258
+ }
3259
+ .tina-tailwind .overflow-y-auto {
3260
+ overflow-y: auto;
3261
+ }
3262
+ .tina-tailwind .whitespace-nowrap {
3263
+ white-space: nowrap;
3264
+ }
3265
+ .tina-tailwind .rounded-lg {
3266
+ border-radius: 8px;
3267
+ }
3268
+ .tina-tailwind .rounded {
3269
+ border-radius: 4px;
3270
+ }
3271
+ .tina-tailwind .rounded-full {
3272
+ border-radius: 9999px;
3273
+ }
3274
+ .tina-tailwind .rounded-md {
3275
+ border-radius: 6px;
3276
+ }
3277
+ .tina-tailwind .rounded-r-md {
3278
+ border-top-right-radius: 6px;
3279
+ border-bottom-right-radius: 6px;
3280
+ }
3281
+ .tina-tailwind .border {
3282
+ border-width: 1px;
3283
+ }
3284
+ .tina-tailwind .border-b {
3285
+ border-bottom-width: 1px;
3286
+ }
3287
+ .tina-tailwind .border-gray-150 {
3288
+ --tw-border-opacity: 1;
3289
+ border-color: rgb(230 227 239 / var(--tw-border-opacity));
3290
+ }
3291
+ .tina-tailwind .border-gray-200 {
3292
+ --tw-border-opacity: 1;
3293
+ border-color: rgb(225 221 236 / var(--tw-border-opacity));
3294
+ }
3295
+ .tina-tailwind .bg-white {
3296
+ --tw-bg-opacity: 1;
3297
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
3298
+ }
3299
+ .tina-tailwind .bg-gray-50 {
3300
+ --tw-bg-opacity: 1;
3301
+ background-color: rgb(246 246 249 / var(--tw-bg-opacity));
3302
+ }
3303
+ .tina-tailwind .bg-blue-500 {
3304
+ --tw-bg-opacity: 1;
3305
+ background-color: rgb(0 132 255 / var(--tw-bg-opacity));
3306
+ }
3307
+ .tina-tailwind .bg-gradient-to-b {
3308
+ background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
3309
+ }
3310
+ .tina-tailwind .bg-gradient-to-br {
3311
+ background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
3312
+ }
3313
+ .tina-tailwind .from-blue-900 {
3314
+ --tw-gradient-from: #1D2C6C;
3315
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(29 44 108 / 0));
3316
+ }
3317
+ .tina-tailwind .from-gray-800 {
3318
+ --tw-gradient-from: #363145;
3319
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(54 49 69 / 0));
3320
+ }
3321
+ .tina-tailwind .via-gray-900 {
3322
+ --tw-gradient-stops: var(--tw-gradient-from), #252336, var(--tw-gradient-to, rgb(37 35 54 / 0));
3323
+ }
3324
+ .tina-tailwind .to-gray-900 {
3325
+ --tw-gradient-to: #252336;
3326
+ }
3327
+ .tina-tailwind .to-black {
3328
+ --tw-gradient-to: #000;
3329
+ }
3330
+ .tina-tailwind .px-4 {
3331
+ padding-left: 16px;
3332
+ padding-right: 16px;
3333
+ }
3334
+ .tina-tailwind .py-6 {
3335
+ padding-top: 24px;
3336
+ padding-bottom: 24px;
3337
+ }
3338
+ .tina-tailwind .px-5 {
3339
+ padding-left: 20px;
3340
+ padding-right: 20px;
3341
+ }
3342
+ .tina-tailwind .py-4 {
3343
+ padding-top: 16px;
3344
+ padding-bottom: 16px;
3345
+ }
3346
+ .tina-tailwind .px-12 {
3347
+ padding-left: 48px;
3348
+ padding-right: 48px;
3349
+ }
3350
+ .tina-tailwind .py-10 {
3351
+ padding-top: 40px;
3352
+ padding-bottom: 40px;
3353
+ }
3354
+ .tina-tailwind .px-20 {
3355
+ padding-left: 80px;
3356
+ padding-right: 80px;
3357
+ }
3358
+ .tina-tailwind .px-6 {
3359
+ padding-left: 24px;
3360
+ padding-right: 24px;
3361
+ }
3362
+ .tina-tailwind .py-1 {
3363
+ padding-top: 4px;
3364
+ padding-bottom: 4px;
3365
+ }
3366
+ .tina-tailwind .py-2 {
3367
+ padding-top: 8px;
3368
+ padding-bottom: 8px;
3369
+ }
3370
+ .tina-tailwind .py-5 {
3371
+ padding-top: 20px;
3372
+ padding-bottom: 20px;
3373
+ }
3374
+ .tina-tailwind .pt-4 {
3375
+ padding-top: 16px;
3376
+ }
3377
+ .tina-tailwind .pb-4 {
3378
+ padding-bottom: 16px;
3379
+ }
3380
+ .tina-tailwind .pt-18 {
3381
+ padding-top: 72px;
3382
+ }
3383
+ .tina-tailwind .pt-3 {
3384
+ padding-top: 12px;
3385
+ }
3386
+ .tina-tailwind .pl-18 {
3387
+ padding-left: 72px;
3388
+ }
3389
+ .tina-tailwind .text-left {
3390
+ text-align: left;
3391
+ }
3392
+ .tina-tailwind .text-center {
3393
+ text-align: center;
3394
+ }
3395
+ .tina-tailwind .font-sans {
3396
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
3397
+ }
3398
+ .tina-tailwind .text-2xl {
3399
+ font-size: 24px;
3400
+ line-height: 1.33;
3401
+ }
3402
+ .tina-tailwind .text-base {
3403
+ font-size: 16px;
3404
+ line-height: 1.5;
3405
+ }
3406
+ .tina-tailwind .text-sm {
3407
+ font-size: 14px;
3408
+ line-height: 1.43;
3409
+ }
3410
+ .tina-tailwind .text-xl {
3411
+ font-size: 20px;
3412
+ line-height: 1.4;
3413
+ }
3414
+ .tina-tailwind .text-md {
3415
+ font-size: 16px;
3416
+ line-height: 1.5;
3417
+ }
3418
+ .tina-tailwind .text-xs {
3419
+ font-size: 13px;
3420
+ line-height: 1.33;
3421
+ }
3422
+ .tina-tailwind .font-medium {
3423
+ font-weight: 500;
3424
+ }
3425
+ .tina-tailwind .uppercase {
3426
+ text-transform: uppercase;
3427
+ }
3428
+ .tina-tailwind .italic {
3429
+ font-style: italic;
3430
+ }
3431
+ .tina-tailwind .leading-normal {
3432
+ line-height: 1.5;
3433
+ }
3434
+ .tina-tailwind .leading-tight {
3435
+ line-height: 1.25;
3436
+ }
3437
+ .tina-tailwind .leading-5 {
3438
+ line-height: 20px;
3439
+ }
3440
+ .tina-tailwind .tracking-wide {
3441
+ letter-spacing: 0.025em;
3442
+ }
3443
+ .tina-tailwind .text-gray-600 {
3444
+ --tw-text-opacity: 1;
3445
+ color: rgb(86 81 101 / var(--tw-text-opacity));
3446
+ }
3447
+ .tina-tailwind .text-gray-700 {
3448
+ --tw-text-opacity: 1;
3449
+ color: rgb(67 62 82 / var(--tw-text-opacity));
3450
+ }
3451
+ .tina-tailwind .text-blue-600 {
3452
+ --tw-text-opacity: 1;
3453
+ color: rgb(5 116 228 / var(--tw-text-opacity));
3454
+ }
3455
+ .tina-tailwind .text-gray-500 {
3456
+ --tw-text-opacity: 1;
3457
+ color: rgb(113 108 127 / var(--tw-text-opacity));
3458
+ }
3459
+ .tina-tailwind .text-gray-400 {
3460
+ --tw-text-opacity: 1;
3461
+ color: rgb(145 140 158 / var(--tw-text-opacity));
3462
+ }
3463
+ .tina-tailwind .text-current {
3464
+ color: currentColor;
3465
+ }
3466
+ .tina-tailwind .text-white {
3467
+ --tw-text-opacity: 1;
3468
+ color: rgb(255 255 255 / var(--tw-text-opacity));
3469
+ }
3470
+ .tina-tailwind .text-gray-800 {
3471
+ --tw-text-opacity: 1;
3472
+ color: rgb(54 49 69 / var(--tw-text-opacity));
3473
+ }
3474
+ .tina-tailwind .text-gray-900 {
3475
+ --tw-text-opacity: 1;
3476
+ color: rgb(37 35 54 / var(--tw-text-opacity));
3477
+ }
3478
+ .tina-tailwind .text-red-500 {
3479
+ --tw-text-opacity: 1;
3480
+ color: rgb(239 68 68 / var(--tw-text-opacity));
3481
+ }
3482
+ .tina-tailwind .underline {
3483
+ text-decoration-line: underline;
3484
+ }
3485
+ .tina-tailwind .opacity-100 {
3486
+ opacity: 1;
3487
+ }
3488
+ .tina-tailwind .opacity-0 {
3489
+ opacity: 0;
3490
+ }
3491
+ .tina-tailwind .opacity-80 {
3492
+ opacity: .8;
3493
+ }
3494
+ .tina-tailwind .opacity-90 {
3495
+ opacity: .9;
3496
+ }
3497
+ .tina-tailwind .opacity-50 {
3498
+ opacity: .5;
3499
+ }
3500
+ .tina-tailwind .opacity-70 {
3501
+ opacity: .7;
3502
+ }
3503
+ .tina-tailwind .shadow-lg {
3504
+ --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
3505
+ --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
3506
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3507
+ }
3508
+ .tina-tailwind .shadow-2xl {
3509
+ --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
3510
+ --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
3511
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3512
+ }
3513
+ .tina-tailwind .shadow {
3514
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
3515
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
3516
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3517
+ }
3518
+ .tina-tailwind .ring-1 {
3519
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
3520
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
3521
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
3522
+ }
3523
+ .tina-tailwind .ring-black {
3524
+ --tw-ring-opacity: 1;
3525
+ --tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));
3526
+ }
3527
+ .tina-tailwind .ring-opacity-5 {
3528
+ --tw-ring-opacity: .05;
3529
+ }
3530
+ .tina-tailwind .filter {
3531
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
3532
+ }
3533
+ .tina-tailwind .transition-opacity {
3534
+ transition-property: opacity;
3535
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3536
+ transition-duration: 150ms;
3537
+ }
3538
+ .tina-tailwind .transition-all {
3539
+ transition-property: all;
3540
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3541
+ transition-duration: 150ms;
3542
+ }
3543
+ .tina-tailwind .transition-colors {
3544
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
3545
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3546
+ transition-duration: 150ms;
3547
+ }
3548
+ .tina-tailwind .transition {
3549
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
3550
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3551
+ transition-duration: 150ms;
3552
+ }
3553
+ .tina-tailwind .duration-300 {
3554
+ transition-duration: 300ms;
3555
+ }
3556
+ .tina-tailwind .duration-200 {
3557
+ transition-duration: 200ms;
3558
+ }
3559
+ .tina-tailwind .duration-150 {
3560
+ transition-duration: 150ms;
3561
+ }
3562
+ .tina-tailwind .duration-100 {
3563
+ transition-duration: 100ms;
3564
+ }
3565
+ .tina-tailwind .duration-75 {
3566
+ transition-duration: 75ms;
3567
+ }
3568
+ .tina-tailwind .ease-out {
3569
+ transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
3570
+ }
3571
+ .tina-tailwind .ease-in {
3572
+ transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
3573
+ }
3574
+ .tina-tailwind .icon-parent svg {
3575
+ fill: currentColor;
3576
+ }
3577
+ .tina-tailwind {
3578
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
3579
+ font-size: 16px;
3580
+ line-height: 1.5;
3581
+ --tw-text-opacity: 1;
3582
+ color: rgb(86 81 101 / var(--tw-text-opacity));
3583
+ }
3584
+ .tina-tailwind .hover\\:bg-blue-600:hover {
3585
+ --tw-bg-opacity: 1;
3586
+ background-color: rgb(5 116 228 / var(--tw-bg-opacity));
3587
+ }
3588
+ .tina-tailwind .hover\\:text-blue-600:hover {
3589
+ --tw-text-opacity: 1;
3590
+ color: rgb(5 116 228 / var(--tw-text-opacity));
3591
+ }
3592
+ .tina-tailwind .hover\\:text-blue-400:hover {
3593
+ --tw-text-opacity: 1;
3594
+ color: rgb(34 150 254 / var(--tw-text-opacity));
3595
+ }
3596
+ .tina-tailwind .hover\\:opacity-100:hover {
3597
+ opacity: 1;
3598
+ }
3599
+ .tina-tailwind .focus\\:text-blue-400:focus {
3600
+ --tw-text-opacity: 1;
3601
+ color: rgb(34 150 254 / var(--tw-text-opacity));
3602
+ }
3603
+ .tina-tailwind .focus\\:underline:focus {
3604
+ text-decoration-line: underline;
3605
+ }
3606
+ .tina-tailwind .focus\\:shadow-outline:focus {
3607
+ --tw-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
3608
+ --tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);
3609
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3610
+ }
3611
+ .tina-tailwind .focus\\:outline-none:focus {
3612
+ outline: 2px solid transparent;
3613
+ outline-offset: 2px;
3614
+ }
3615
+ .tina-tailwind .focus\\:ring-2:focus {
3616
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
3617
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
3618
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
3619
+ }
3620
+ .tina-tailwind .focus\\:ring-blue-500:focus {
3621
+ --tw-ring-opacity: 1;
3622
+ --tw-ring-color: rgb(0 132 255 / var(--tw-ring-opacity));
3623
+ }
3624
+ `;
2733
3625
  class ContentCreatorPlugin {
2734
3626
  constructor(options) {
2735
3627
  this.__type = "content-creator";
@@ -3400,6 +4292,9 @@ This will work when developing locally but NOT when deployed to production.
3400
4292
  function BiEdit(props) {
3401
4293
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "m7 17.013 4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z" } }, { "tag": "path", "attr": { "d": "M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z" } }] })(props);
3402
4294
  }
4295
+ function BiLeftArrowAlt(props) {
4296
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M12.707 17.293 8.414 13H18v-2H8.414l4.293-4.293-1.414-1.414L4.586 12l6.707 6.707z" } }] })(props);
4297
+ }
3403
4298
  function BiLogIn(props) {
3404
4299
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "m13 16 5-4-5-4v3H4v2h9z" } }, { "tag": "path", "attr": { "d": "M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z" } }] })(props);
3405
4300
  }
@@ -3412,6 +4307,9 @@ This will work when developing locally but NOT when deployed to production.
3412
4307
  function BiPlus(props) {
3413
4308
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" } }] })(props);
3414
4309
  }
4310
+ function BiRightArrowAlt(props) {
4311
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "m11.293 17.293 1.414 1.414L19.414 12l-6.707-6.707-1.414 1.414L15.586 11H6v2h9.586z" } }] })(props);
4312
+ }
3415
4313
  function BiTrash(props) {
3416
4314
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M5 20a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8h2V6h-4V4a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v2H3v2h2zM9 4h6v2H9zM8 8h9v12H7V8z" } }, { "tag": "path", "attr": { "d": "M9 10h2v8H9zm4 0h2v8h-2z" } }] })(props);
3417
4315
  }
@@ -3549,7 +4447,7 @@ This will work when developing locally but NOT when deployed to production.
3549
4447
  }, /* @__PURE__ */ React__default["default"].createElement("div", {
3550
4448
  className: "px-5 py-4 border-b border-gray-150"
3551
4449
  }, /* @__PURE__ */ React__default["default"].createElement("h2", {
3552
- className: "text-2xl tracking-wide text-gray-700 flex items-center gap-0.5"
4450
+ className: "text-2xl font-sans tracking-wide text-gray-700 flex items-center gap-0.5"
3553
4451
  }, /* @__PURE__ */ React__default["default"].createElement("svg", {
3554
4452
  viewBox: "0 0 32 32",
3555
4453
  fill: "#EC4815",
@@ -3652,7 +4550,7 @@ This will work when developing locally but NOT when deployed to production.
3652
4550
  return /* @__PURE__ */ React__default["default"].createElement(PageWrapper, null, /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(PageHeader, {
3653
4551
  isLocalMode: (_b = (_a = cms.api) == null ? void 0 : _a.tina) == null ? void 0 : _b.isLocalMode
3654
4552
  }, /* @__PURE__ */ React__default["default"].createElement("h3", {
3655
- className: "text-2xl text-gray-700"
4553
+ className: "text-2xl font-sans text-gray-700"
3656
4554
  }, "Welcome to Tina!")), /* @__PURE__ */ React__default["default"].createElement(PageBodyNarrow, null, "This is your dashboard for editing or creating content. Select a collection on the left to begin.")));
3657
4555
  });
3658
4556
  };
@@ -3755,7 +4653,7 @@ This will work when developing locally but NOT when deployed to production.
3755
4653
  fontWeight: "normal"
3756
4654
  }
3757
4655
  }, "Please wait, Tina is loading data..."))));
3758
- const useGetCollection = (cms, collectionName, includeDocuments = true) => {
4656
+ const useGetCollection = (cms, collectionName, includeDocuments = true, after = "") => {
3759
4657
  const api = new TinaAdminApi(cms);
3760
4658
  const [collection, setCollection] = React.useState(void 0);
3761
4659
  const [loading, setLoading] = React.useState(true);
@@ -3765,7 +4663,7 @@ This will work when developing locally but NOT when deployed to production.
3765
4663
  const fetchCollection = async () => {
3766
4664
  if (await api.isAuthenticated()) {
3767
4665
  try {
3768
- const collection2 = await api.fetchCollection(collectionName, includeDocuments);
4666
+ const collection2 = await api.fetchCollection(collectionName, includeDocuments, after);
3769
4667
  setCollection(collection2);
3770
4668
  } catch (error2) {
3771
4669
  cms.alerts.error(`[${error2.name}] GetCollection failed: ${error2.message}`, 30 * 1e3);
@@ -3778,7 +4676,7 @@ This will work when developing locally but NOT when deployed to production.
3778
4676
  };
3779
4677
  setLoading(true);
3780
4678
  fetchCollection();
3781
- }, [cms, collectionName, resetState]);
4679
+ }, [cms, collectionName, resetState, after]);
3782
4680
  const reFetchCollection = () => setResetSate((x) => x + 1);
3783
4681
  return { collection, loading, error, reFetchCollection };
3784
4682
  };
@@ -3786,9 +4684,10 @@ This will work when developing locally but NOT when deployed to production.
3786
4684
  cms,
3787
4685
  collectionName,
3788
4686
  includeDocuments = true,
4687
+ startCursor,
3789
4688
  children
3790
4689
  }) => {
3791
- const { collection, loading, error, reFetchCollection } = useGetCollection(cms, collectionName, includeDocuments);
4690
+ const { collection, loading, error, reFetchCollection } = useGetCollection(cms, collectionName, includeDocuments, startCursor || "");
3792
4691
  if (error) {
3793
4692
  return null;
3794
4693
  }
@@ -3797,6 +4696,148 @@ This will work when developing locally but NOT when deployed to production.
3797
4696
  }
3798
4697
  return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, children(collection, loading, reFetchCollection));
3799
4698
  };
4699
+ const theme = styled.css`
4700
+ :root {
4701
+ --tina-color-primary-light: #2296fe;
4702
+ --tina-color-primary: #0084ff;
4703
+ --tina-color-primary-dark: #0574e4;
4704
+ --tina-color-error-light: #eb6337;
4705
+ --tina-color-error: #ec4815;
4706
+ --tina-color-error-dark: #dc4419;
4707
+ --tina-color-warning-light: #f5e06e;
4708
+ --tina-color-warning: #e9d050;
4709
+ --tina-color-warning-dark: #d3ba38;
4710
+ --tina-color-success-light: #57c355;
4711
+ --tina-color-success: #3cad3a;
4712
+ --tina-color-success-dark: #249a21;
4713
+ --tina-color-grey-0: #ffffff;
4714
+ --tina-color-grey-1: #f6f6f9;
4715
+ --tina-color-grey-2: #edecf3;
4716
+ --tina-color-grey-3: #e1ddec;
4717
+ --tina-color-grey-4: #b2adbe;
4718
+ --tina-color-grey-5: #918c9e;
4719
+ --tina-color-grey-6: #716c7f;
4720
+ --tina-color-grey-7: #565165;
4721
+ --tina-color-grey-8: #433e52;
4722
+ --tina-color-grey-9: #363145;
4723
+ --tina-color-grey-10: #252336;
4724
+ --tina-color-indicator: var(--tina-color-primary);
4725
+
4726
+ --tina-radius-small: 5px;
4727
+ --tina-radius-big: 24px;
4728
+
4729
+ --tina-padding-small: 12px;
4730
+ --tina-padding-big: 20px;
4731
+
4732
+ --tina-font-size-0: 12px;
4733
+ --tina-font-size-1: 13px;
4734
+ --tina-font-size-2: 15px;
4735
+ --tina-font-size-3: 16px;
4736
+ --tina-font-size-4: 18px;
4737
+ --tina-font-size-5: 20px;
4738
+ --tina-font-size-6: 22px;
4739
+ --tina-font-size-7: 26px;
4740
+ --tina-font-size-8: 32px;
4741
+
4742
+ --tina-font-family: 'Inter', sans-serif;
4743
+
4744
+ --tina-font-weight-regular: 400;
4745
+ --tina-font-weight-bold: 600;
4746
+
4747
+ --tina-shadow-big: 0px 2px 3px rgba(0, 0, 0, 0.05),
4748
+ 0 4px 12px rgba(0, 0, 0, 0.1);
4749
+ --tina-shadow-small: 0px 2px 3px rgba(0, 0, 0, 0.12);
4750
+
4751
+ --tina-timing-short: 85ms;
4752
+ --tina-timing-medium: 150ms;
4753
+ --tina-timing-long: 250ms;
4754
+
4755
+ --tina-z-index-0: 0;
4756
+ --tina-z-index-1: 10;
4757
+ --tina-z-index-2: 20;
4758
+ --tina-z-index-3: 30;
4759
+ --tina-z-index-4: 40;
4760
+ --tina-z-index-5: 50;
4761
+
4762
+ --tina-sidebar-width: 340px;
4763
+ --tina-sidebar-header-height: 60px;
4764
+ --tina-toolbar-height: 62px;
4765
+ }
4766
+ `;
4767
+ styled.createGlobalStyle`
4768
+ ${theme};
4769
+ `;
4770
+ const Button = (_g) => {
4771
+ var _h = _g, {
4772
+ variant = "secondary",
4773
+ as: Tag = "button",
4774
+ size = "medium",
4775
+ busy,
4776
+ disabled,
4777
+ rounded = "full",
4778
+ children,
4779
+ className
4780
+ } = _h, props = __objRest(_h, [
4781
+ "variant",
4782
+ "as",
4783
+ "size",
4784
+ "busy",
4785
+ "disabled",
4786
+ "rounded",
4787
+ "children",
4788
+ "className"
4789
+ ]);
4790
+ const baseClasses = "icon-parent border-0 inline-flex items-center font-medium focus:outline-none focus:ring-2 focus:shadow-outline text-center inline-flex justify-center transition-all duration-150 ease-out ";
4791
+ const variantClasses = {
4792
+ primary: `shadow text-white bg-blue-500 hover:bg-blue-600 focus:ring-blue-500`,
4793
+ secondary: `shadow text-gray-500 hover:text-blue-500 bg-gray-50 hover:bg-white border border-gray-200`,
4794
+ white: `shadow text-gray-500 hover:text-blue-500 bg-white hover:bg-gray-50 border border-gray-200`,
4795
+ ghost: `text-gray-500 hover:text-blue-500 hover:shadow border border-transparent hover:border-gray-200 bg-transparent`,
4796
+ danger: `shadow text-white bg-red-500 hover:bg-red-600 focus:ring-red-500`
4797
+ };
4798
+ const state = busy ? `busy` : disabled ? `disabled` : `default`;
4799
+ const stateClasses = {
4800
+ disabled: `pointer-events-none opacity-30 cursor-not-allowed`,
4801
+ busy: `pointer-events-none opacity-70 cursor-wait`,
4802
+ default: ``
4803
+ };
4804
+ const roundedClasses = {
4805
+ full: `rounded-full`,
4806
+ left: `rounded-l-full`,
4807
+ right: `rounded-r-full`
4808
+ };
4809
+ const sizeClasses = {
4810
+ small: `text-xs h-8 px-3`,
4811
+ medium: `text-sm h-10 px-4`,
4812
+ custom: ``
4813
+ };
4814
+ return /* @__PURE__ */ React__namespace.createElement(Tag, __spreadValues({
4815
+ className: `${baseClasses} ${variantClasses[variant]} ${sizeClasses[size]} ${stateClasses[state]} ${roundedClasses[rounded]} ${className}`
4816
+ }, props), children);
4817
+ };
4818
+ function CursorPaginator({
4819
+ navigateNext,
4820
+ navigatePrev,
4821
+ hasNext,
4822
+ hasPrev,
4823
+ variant = "secondary"
4824
+ }) {
4825
+ return /* @__PURE__ */ React__default["default"].createElement("div", {
4826
+ className: "w-full flex flex-shrink-0 justify-end gap-2 items-center"
4827
+ }, /* @__PURE__ */ React__default["default"].createElement(Button, {
4828
+ variant,
4829
+ disabled: !hasPrev,
4830
+ onClick: navigatePrev
4831
+ }, /* @__PURE__ */ React__default["default"].createElement(BiLeftArrowAlt, {
4832
+ className: "w-6 h-full mr-2 opacity-70"
4833
+ }), " Previous"), /* @__PURE__ */ React__default["default"].createElement(Button, {
4834
+ variant,
4835
+ disabled: !hasNext,
4836
+ onClick: navigateNext
4837
+ }, "Next ", /* @__PURE__ */ React__default["default"].createElement(BiRightArrowAlt, {
4838
+ className: "w-6 h-full ml-2 opacity-70"
4839
+ })));
4840
+ }
3800
4841
  const TemplateMenu = ({ templates }) => {
3801
4842
  return /* @__PURE__ */ React__default["default"].createElement(react.Menu, {
3802
4843
  as: "div",
@@ -3843,16 +4884,26 @@ This will work when developing locally but NOT when deployed to production.
3843
4884
  collection: collectionName,
3844
4885
  relativePath: ""
3845
4886
  });
4887
+ const [endCursor, setEndCursor] = React.useState("");
4888
+ const [prevCursors, setPrevCursors] = React.useState([]);
4889
+ const loc = reactRouterDom.useLocation();
4890
+ React.useEffect(() => {
4891
+ setEndCursor("");
4892
+ setPrevCursors([]);
4893
+ }, [loc]);
3846
4894
  return /* @__PURE__ */ React__default["default"].createElement(GetCMS, null, (cms) => {
3847
4895
  return /* @__PURE__ */ React__default["default"].createElement(GetCollection, {
3848
4896
  cms,
3849
4897
  collectionName,
3850
- includeDocuments: true
4898
+ includeDocuments: true,
4899
+ startCursor: endCursor
3851
4900
  }, (collection, _loading, reFetchCollection) => {
3852
4901
  var _a, _b;
3853
4902
  const totalCount = collection.documents.totalCount;
3854
4903
  const documents = collection.documents.edges;
3855
4904
  const admin = cms.api.admin;
4905
+ const pageInfo = collection.documents.pageInfo;
4906
+ const useDataFlag = cms.flags.get("experimentalData");
3856
4907
  return /* @__PURE__ */ React__default["default"].createElement(PageWrapper, null, /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, open && /* @__PURE__ */ React__default["default"].createElement(DeleteModal, {
3857
4908
  filename: vars.relativePath,
3858
4909
  deleteFunc: async () => {
@@ -3870,7 +4921,7 @@ This will work when developing locally but NOT when deployed to production.
3870
4921
  }), /* @__PURE__ */ React__default["default"].createElement(PageHeader, {
3871
4922
  isLocalMode: (_b = (_a = cms == null ? void 0 : cms.api) == null ? void 0 : _a.tina) == null ? void 0 : _b.isLocalMode
3872
4923
  }, /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement("h3", {
3873
- className: "text-2xl text-gray-700"
4924
+ className: "font-sans text-2xl text-gray-700"
3874
4925
  }, collection.label ? collection.label : collection.name), !collection.templates && /* @__PURE__ */ React__default["default"].createElement(reactRouterDom.Link, {
3875
4926
  to: `new`,
3876
4927
  className: "icon-parent inline-flex items-center font-medium focus:outline-none focus:ring-2 focus:shadow-outline text-center rounded-full justify-center transition-all duration-150 ease-out shadow text-white bg-blue-500 hover:bg-blue-600 focus:ring-blue-500 text-sm h-10 px-6"
@@ -3935,7 +4986,7 @@ This will work when developing locally but NOT when deployed to production.
3935
4986
  size: "1.3rem"
3936
4987
  }),
3937
4988
  onMouseDown: () => {
3938
- navigate(`${document.node._sys.filename}`, { replace: true });
4989
+ navigate(`${document.node._sys.breadcrumbs.join("/")}`, { replace: true });
3939
4990
  }
3940
4991
  },
3941
4992
  {
@@ -3948,19 +4999,38 @@ This will work when developing locally but NOT when deployed to production.
3948
4999
  onMouseDown: () => {
3949
5000
  setVars({
3950
5001
  collection: collectionName,
3951
- relativePath: document.node._sys.filename + document.node._sys.extension
5002
+ relativePath: document.node._sys.breadcrumbs.join("/") + document.node._sys.extension
3952
5003
  });
3953
5004
  setOpen(true);
3954
5005
  }
3955
5006
  }
3956
5007
  ]
3957
5008
  })));
3958
- })))))));
5009
+ }))), useDataFlag && /* @__PURE__ */ React__default["default"].createElement("div", {
5010
+ className: "pt-3"
5011
+ }, /* @__PURE__ */ React__default["default"].createElement(CursorPaginator, {
5012
+ variant: "white",
5013
+ hasNext: pageInfo == null ? void 0 : pageInfo.hasNextPage,
5014
+ navigateNext: () => {
5015
+ const newState = [...prevCursors, endCursor];
5016
+ setPrevCursors(newState);
5017
+ setEndCursor(pageInfo == null ? void 0 : pageInfo.endCursor);
5018
+ },
5019
+ hasPrev: prevCursors.length > 0,
5020
+ navigatePrev: () => {
5021
+ const prev = prevCursors[prevCursors.length - 1];
5022
+ if (typeof prev === "string") {
5023
+ const newState = prevCursors.slice(0, -1);
5024
+ setPrevCursors(newState);
5025
+ setEndCursor(prev);
5026
+ }
5027
+ }
5028
+ }))))));
3959
5029
  });
3960
5030
  });
3961
5031
  };
3962
5032
  const DeleteModal = ({ close: close2, deleteFunc, filename }) => {
3963
- return /* @__PURE__ */ React__default["default"].createElement(toolkit.Modal, null, /* @__PURE__ */ React__default["default"].createElement(toolkit.ModalPopup, null, /* @__PURE__ */ React__default["default"].createElement(toolkit.ModalHeader, {
5033
+ return /* @__PURE__ */ React__default["default"].createElement(toolkit.Modal, null, /* @__PURE__ */ React__default["default"].createElement(toolkit.ModalHeader, {
3964
5034
  close: close2
3965
5035
  }, "Delete ", filename), /* @__PURE__ */ React__default["default"].createElement(toolkit.ModalBody, {
3966
5036
  padded: true
@@ -3974,7 +5044,7 @@ This will work when developing locally but NOT when deployed to production.
3974
5044
  await deleteFunc();
3975
5045
  close2();
3976
5046
  }
3977
- }, "Delete"))));
5047
+ }, "Delete")));
3978
5048
  };
3979
5049
  function HiChevronRight(props) {
3980
5050
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 20 20", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", "clipRule": "evenodd" } }] })(props);