@firecms/collection_editor 3.0.0-canary.57 → 3.0.0-canary.59

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/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@firecms/collection_editor",
3
3
  "type": "module",
4
- "version": "3.0.0-canary.57",
4
+ "version": "3.0.0-canary.59",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "source": "src/index.ts",
9
9
  "dependencies": {
10
- "@firecms/data_import_export": "^3.0.0-canary.57",
11
- "@firecms/formex": "^3.0.0-canary.57",
12
- "@firecms/schema_inference": "^3.0.0-canary.57",
13
- "@firecms/ui": "^3.0.0-canary.57",
10
+ "@firecms/data_import_export": "^3.0.0-canary.59",
11
+ "@firecms/formex": "^3.0.0-canary.59",
12
+ "@firecms/schema_inference": "^3.0.0-canary.59",
13
+ "@firecms/ui": "^3.0.0-canary.59",
14
14
  "json5": "^2.2.3",
15
15
  "prism-react-renderer": "^2.3.1"
16
16
  },
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "54c0d79d2648c937d055bacab2d7d92fbd294c7b"
84
+ "gitHead": "870435eb903576cd282b2c22165ec3afa84c9340"
85
85
  }
@@ -1,5 +1,5 @@
1
1
  import { PluginHomePageAdditionalCardsProps, useAuthController } from "@firecms/core";
2
- import { AddIcon, Card, cn, Typography } from "@firecms/ui";
2
+ import { AddIcon, Card, cls, Typography } from "@firecms/ui";
3
3
  import { useCollectionEditorController } from "../useCollectionEditorController";
4
4
 
5
5
  export function NewCollectionCard({
@@ -20,7 +20,7 @@ export function NewCollectionCard({
20
20
  : true;
21
21
 
22
22
  return (
23
- <Card className={cn("h-full p-4 min-h-[124px]")}
23
+ <Card className={cls("h-full p-4 min-h-[124px]")}
24
24
  onClick={collectionEditorController && canCreateCollections
25
25
  ? () => collectionEditorController.createCollection({
26
26
  initialValues: group ? { group } : undefined,
@@ -6,7 +6,7 @@ import {
6
6
  BooleanSwitchWithLabel,
7
7
  Chip,
8
8
  ClearIcon,
9
- cn,
9
+ cls,
10
10
  Container,
11
11
  DebouncedTextField,
12
12
  Dialog,
@@ -147,7 +147,7 @@ export function CollectionDetailsForm({
147
147
  </FieldCaption>
148
148
  </div>
149
149
 
150
- <div className={cn("col-span-12 ", isSubcollection ? "" : "sm:col-span-8")}>
150
+ <div className={cls("col-span-12 ", isSubcollection ? "" : "sm:col-span-8")}>
151
151
  <Field name={"path"}
152
152
  as={DebouncedTextField}
153
153
  label={"Path"}
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  ArrowBackIcon,
27
27
  Button,
28
- cn,
28
+ cls,
29
29
  coolIconKeys,
30
30
  defaultBorderMixin,
31
31
  Dialog,
@@ -526,7 +526,7 @@ function CollectionEditorInternal<M extends Record<string, any>>({
526
526
 
527
527
  <>
528
528
  {!isNewCollection && <Tabs value={currentView}
529
- className={cn(defaultBorderMixin, "justify-end bg-gray-50 dark:bg-gray-950 border-b")}
529
+ className={cls(defaultBorderMixin, "justify-end bg-gray-50 dark:bg-gray-950 border-b")}
530
530
  onValueChange={(v) => setCurrentView(v as EditorView)}>
531
531
  <Tab value={"details"}>
532
532
  Details
@@ -541,7 +541,7 @@ function CollectionEditorInternal<M extends Record<string, any>>({
541
541
 
542
542
  <form noValidate
543
543
  onSubmit={formController.handleSubmit}
544
- className={cn(
544
+ className={cls(
545
545
  isNewCollection ? "h-full" : "h-[calc(100%-48px)]",
546
546
  "flex-grow flex flex-col relative")}>
547
547
 
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import { EntityCollection, unslugify, } from "@firecms/core";
3
- import { Button, Card, Chip, CircularProgress, cn, Container, Icon, Tooltip, Typography, } from "@firecms/ui";
3
+ import { Button, Card, Chip, CircularProgress, cls, Container, Icon, Tooltip, Typography, } from "@firecms/ui";
4
4
 
5
5
  import { productsCollectionTemplate } from "./templates/products_template";
6
6
  import { blogCollectionTemplate } from "./templates/blog_template";
@@ -188,7 +188,7 @@ export function TemplateButton({
188
188
  <Tooltip title={subtitle}>
189
189
  <Card
190
190
  onClick={onClick}
191
- className={cn(
191
+ className={cls(
192
192
  "my-2 rounded-md border mx-0 p-6 px-4 focus:outline-none transition ease-in-out duration-150 flex flex-row gap-4 items-center",
193
193
  "text-gray-700 dark:text-slate-300",
194
194
  "hover:border-primary-dark hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary",
@@ -19,7 +19,7 @@ import {
19
19
  AutoAwesomeIcon,
20
20
  Button,
21
21
  CircularProgress,
22
- cn,
22
+ cls,
23
23
  CodeIcon,
24
24
  DebouncedTextField,
25
25
  defaultBorderMixin,
@@ -317,7 +317,7 @@ export function CollectionPropertiesEditorForm({
317
317
 
318
318
  const body = (
319
319
  <div className={"grid grid-cols-12 gap-2 h-full bg-gray-50 dark:bg-gray-900"}>
320
- <div className={cn(
320
+ <div className={cls(
321
321
  "p-4 md:p-8 pb-20 md:pb-20",
322
322
  "col-span-12 lg:col-span-5 h-full overflow-auto",
323
323
  !asDialog && "border-r " + defaultBorderMixin
@@ -17,7 +17,7 @@ import {
17
17
  } from "@firecms/core";
18
18
  import {
19
19
  Button,
20
- cn,
20
+ cls,
21
21
  DeleteIcon,
22
22
  Dialog,
23
23
  DialogActions,
@@ -509,7 +509,7 @@ function PropertyEditFormFields({
509
509
  e.preventDefault();
510
510
  }
511
511
  }}
512
- className={cn(
512
+ className={cls(
513
513
  "flex items-center",
514
514
  optionDisabled ? "w-full pointer-events-none opacity-50" : "")}>
515
515
  <div className={"mr-8"}>
@@ -11,7 +11,7 @@ import {
11
11
  cardClickableMixin,
12
12
  cardMixin,
13
13
  cardSelectedMixin,
14
- cn,
14
+ cls,
15
15
  FunctionsIcon,
16
16
  Paper,
17
17
  RemoveCircleIcon,
@@ -53,7 +53,7 @@ export function PropertyFieldPreview({
53
53
  <PropertyConfigBadge propertyConfig={propertyConfig}/>
54
54
  </div>
55
55
  <Paper
56
- className={cn(
56
+ className={cls(
57
57
  "border",
58
58
  "pl-2 w-full flex flex-row gap-4 items-center",
59
59
  cardMixin,
@@ -136,7 +136,7 @@ export function NonEditablePropertyPreview({
136
136
  <RemoveCircleIcon color={"disabled"} size={"small"} className={"absolute -right-2 -top-2"}/>
137
137
  </div>
138
138
  <Paper
139
- className={cn(
139
+ className={cls(
140
140
  "pl-2 w-full flex flex-row gap-4 items-center",
141
141
  cardMixin,
142
142
  onClick ? cardClickableMixin : "",
@@ -1,5 +1,5 @@
1
1
  import { PropertyConfigBadge, PropertyConfig } from "@firecms/core";
2
- import { cn, SelectItem, Typography } from "@firecms/ui";
2
+ import { cls, SelectItem, Typography } from "@firecms/ui";
3
3
 
4
4
  export interface PropertySelectItemProps {
5
5
  value: string;
@@ -13,7 +13,7 @@ export function PropertySelectItem({ value, optionDisabled, propertyConfig, exis
13
13
  disabled={optionDisabled}
14
14
  className={"flex flex-row items-center"}>
15
15
  <div
16
- className={cn(
16
+ className={cls(
17
17
  "flex flex-row items-center text-base min-h-[52px]",
18
18
  optionDisabled ? "w-full" : "")}>
19
19
  <div className={"mr-8"}>