@crystallize/design-system 1.21.0 → 1.21.2

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.css CHANGED
@@ -1773,6 +1773,13 @@
1773
1773
  var(--tw-ring-shadow, 0 0 #0000),
1774
1774
  var(--tw-shadow);
1775
1775
  }
1776
+ .c-tag-xxs {
1777
+ height: 1.25rem;
1778
+ padding-left: 0.5rem;
1779
+ padding-right: 0.5rem;
1780
+ font-size: 0.75rem;
1781
+ line-height: 1rem;
1782
+ }
1776
1783
  .c-tag-xs {
1777
1784
  height: 1.5rem;
1778
1785
  padding-left: 0.5rem;
@@ -2294,7 +2301,6 @@
2294
2301
  margin: 0px auto;
2295
2302
  position: relative;
2296
2303
  line-height: 1.7;
2297
- --c-rte-min-height: 150px;
2298
2304
  }
2299
2305
  .c-rich-text-editor > * {
2300
2306
  box-sizing: border-box;
@@ -2321,7 +2327,7 @@
2321
2327
  color: rgb(var(--c-color-gray-900-50) / var(--tw-text-opacity));
2322
2328
  }
2323
2329
  .c-rich-text-editor .c-rte-editor-scroller {
2324
- min-height: var(--c-rte-min-height);
2330
+ min-height: var(--c-rte-min-height, 150px);
2325
2331
  border: 0;
2326
2332
  resize: none;
2327
2333
  cursor: text;
@@ -2436,7 +2442,6 @@
2436
2442
  .c-rich-text-editor .c-rte-placeholder {
2437
2443
  pointer-events: none;
2438
2444
  position: absolute;
2439
- left: 1.5rem;
2440
2445
  right: 2.5rem;
2441
2446
  top: 0px;
2442
2447
  display: inline-block;
@@ -2449,6 +2454,7 @@
2449
2454
  --tw-text-opacity: 1;
2450
2455
  color: rgb(var(--c-color-gray-300-600) / var(--tw-text-opacity));
2451
2456
  font-style: italic;
2457
+ left: var(--c-rte-content-pl, 1.5rem);
2452
2458
  }
2453
2459
  @keyframes CursorBlink {
2454
2460
  to {
@@ -2469,7 +2475,7 @@
2469
2475
  outline-width: 0px;
2470
2476
  tab-size: 1;
2471
2477
  padding-bottom: 8px;
2472
- min-height: calc(var(--c-rte-min-height) - 8px);
2478
+ min-height: calc(var(--c-rte-min-height, 150px) - 8px);
2473
2479
  padding-top: var(--c-rte-content-pt, 0);
2474
2480
  padding-left: var(--c-rte-content-pl, 1.5rem);
2475
2481
  padding-right: var(--c-rte-content-pr, 1.5rem);
package/dist/index.d.ts CHANGED
@@ -203,23 +203,23 @@ declare namespace DialogBase {
203
203
  type DialogType = typeof DialogBase & DialogFuncProps;
204
204
  declare const Dialog: DialogType;
205
205
  declare function showDialog(delegated: DialogFuncProps): {
206
- destroy: (...args: any[]) => void;
206
+ destroy: () => void;
207
207
  update: (configUpdate: ConfigUpdate) => void;
208
208
  };
209
209
  declare function showWarning(delegated: DialogFuncProps): {
210
- destroy: (...args: any[]) => void;
210
+ destroy: () => void;
211
211
  update: (configUpdate: ConfigUpdate) => void;
212
212
  };
213
213
  declare function showConfirm(delegated: DialogFuncProps): {
214
- destroy: (...args: any[]) => void;
214
+ destroy: () => void;
215
215
  update: (configUpdate: ConfigUpdate) => void;
216
216
  };
217
217
  declare function showError(delegated: DialogFuncProps): {
218
- destroy: (...args: any[]) => void;
218
+ destroy: () => void;
219
219
  update: (configUpdate: ConfigUpdate) => void;
220
220
  };
221
221
  declare function showInfo(delegated: DialogFuncProps): {
222
- destroy: (...args: any[]) => void;
222
+ destroy: () => void;
223
223
  update: (configUpdate: ConfigUpdate) => void;
224
224
  };
225
225
  declare function destroyAll(): void;
@@ -316,7 +316,7 @@ declare function StackIcon({ type, children, size }: StackIconProps): JSX.Elemen
316
316
  type TagStylesProps = VariantProps<typeof tagStyles>;
317
317
  declare const tagStyles: (props?: ({
318
318
  variant?: "default" | "elevate" | null | undefined;
319
- size?: "xs" | "sm" | "md" | "lg" | null | undefined;
319
+ size?: "xs" | "sm" | "md" | "lg" | "xxs" | null | undefined;
320
320
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
321
321
  type TagProps = React.ComponentProps<'div'> & TagStylesProps & {
322
322
  prepend?: React.ReactNode;
@@ -324,11 +324,6 @@ type TagProps = React.ComponentProps<'div'> & TagStylesProps & {
324
324
  };
325
325
  declare function Tag({ children, className, variant, size, prepend, onRemove, ...delegated }: TagProps): JSX.Element;
326
326
 
327
- type I18NKeys = 'actionClearTextFormatting' | 'actionTextFormattingOptions' | 'actionFormatAsStrongLabel' | 'actionFormatAsStrongTitle' | 'actionFormatAsStrongTitleApple' | 'actionFormatAsEmphasizedLabel' | 'actionFormatAsEmphasizedTitle' | 'actionFormatAsEmphasizedTitleApple' | 'actionFormatAsUnderlinedLabel' | 'actionFormatAsUnderlinedTitle' | 'actionFormatAsUnderlinedTitleApple' | 'actionFormatWithStrikethroughLabel' | 'actionFormatWithStrikethroughTitle' | 'actionFormatWithSubscriptLabel' | 'actionFormatWithSubscriptTitle' | 'actionFormatWithSuperscriptLabel' | 'actionFormatWithSuperscriptTitle' | 'actionFormatClear' | 'actionCopyJSON' | 'actionClear' | 'actionFormatCode' | 'actionCopyCode' | 'actionInsertCodeBlock' | 'actionInsertlink' | 'actionTableInsertRowsAbove' | 'actionTableInsertRowsAbove_plural' | 'actionTableInsertRowsBelow' | 'actionTableInsertRowsBelow_plural' | 'actionTableInsertColumnsBefore' | 'actionTableInsertColumnsBefore_plural' | 'actionTableInsertColumnsAfter' | 'actionTableInsertColumnsAfter_plural' | 'actionTableAddRowHeader' | 'actionTableRemoveRowHeader' | 'actionTableAddColumnHeader' | 'actionTableRemoveColumnHeader' | 'actionTableDeleteColumn' | 'actionTableDeleteRow' | 'actionTableDeleteTable' | 'actionTableOpenOptions' | 'actionUndoLabel' | 'actionUndoTitle' | 'actionUndoTitleApple' | 'actionRedoLabel' | 'actionRedoTitle' | 'actionRedoTitleApple' | 'codeSelectLanguage' | 'linkEditorLink' | 'linkEditorRel' | 'linkEditorTarget' | 'linkEditorCommit' | 'linkEditorEdit' | 'linkPreviewReplaceTextWithTitle' | 'horizontalRule' | 'table' | 'insertTableTitle' | 'insertTableDescription' | 'insertTableRows' | 'insertTableColumns' | 'insertTableCommit';
328
- type I18N = Record<I18NKeys, string>;
329
-
330
- type SupportedLanguages = 'en';
331
-
332
327
  declare const CODE_ALL_NAME_OPTIONS: {
333
328
  readonly javascript: "js";
334
329
  readonly md: "markdown";
@@ -420,23 +415,7 @@ type CrystallizeRichTextActionMenuItem = {
420
415
  disabled?: boolean;
421
416
  };
422
417
 
423
- type TRichTextBase = {
424
- placeholder?: string;
425
- onChange?: (data: CrystallizeRichText) => void;
426
- triggerOnChangeOnAutoFocus?: boolean;
427
- autoFocus?: boolean;
428
- actionsMenuPrepend?: CrystallizeRichTextActionMenuItem[];
429
- actionsMenuAppend?: CrystallizeRichTextActionMenuItem[];
430
- slotPreContent?: ReactNode;
431
- maxLength?: number;
432
- language?: SupportedLanguages;
433
- labelTranslations?: I18N;
434
- id?: string;
435
- disabled?: boolean;
436
- };
437
- declare function RichTextEditor({ initialData, language, labelTranslations, ...rest }: TRichTextBase & {
438
- initialData?: CrystallizeRichText | null;
439
- }): JSX.Element;
418
+ declare const RichTextEditor: (props: any) => JSX.Element;
440
419
 
441
420
  declare const toastStyles: (props?: ({
442
421
  type?: "info" | "error" | "warning" | "success" | null | undefined;