@crystallize/design-system 1.24.0 → 1.24.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @crystallize/design-system
2
2
 
3
+ ## 1.24.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 573bdb7: remove @tailwindcss/container-queries from tailwind config, which was redundant there
8
+
9
+ ## 1.24.1
10
+
11
+ ### Patch Changes
12
+
13
+ - bbf1dba: Fix select item classname passing
14
+
3
15
  ## 1.24.0
4
16
 
5
17
  ### Minor Changes
@@ -3969,7 +3969,8 @@ var Piece = forwardRef71((delegated, ref) => {
3969
3969
  children: [
3970
3970
  /* @__PURE__ */ jsx77("path", {
3971
3971
  fill: "#BFF6F8",
3972
- d: "M1.67 1.89h18.491v18.157H1.671V1.891Z"
3972
+ d: "M1.67 1.89h18.491v18.157H1.671V1.891Z",
3973
+ className: "c-icon-fill"
3973
3974
  }),
3974
3975
  /* @__PURE__ */ jsx77("path", {
3975
3976
  fill: "#fff",
package/dist/index.css CHANGED
@@ -1787,7 +1787,7 @@
1787
1787
  }
1788
1788
  .c-tag__remove-button {
1789
1789
  margin: 0px;
1790
- margin-right: -0.5rem;
1790
+ margin-right: -0.25rem;
1791
1791
  cursor: pointer;
1792
1792
  border-style: none;
1793
1793
  background-color: transparent;
package/dist/index.js CHANGED
@@ -4515,7 +4515,8 @@ var init_piece = __esm({
4515
4515
  children: [
4516
4516
  /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", {
4517
4517
  fill: "#BFF6F8",
4518
- d: "M1.67 1.89h18.491v18.157H1.671V1.891Z"
4518
+ d: "M1.67 1.89h18.491v18.157H1.671V1.891Z",
4519
+ className: "c-icon-fill"
4519
4520
  }),
4520
4521
  /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", {
4521
4522
  fill: "#fff",
@@ -39957,12 +39958,13 @@ var Radio = {
39957
39958
 
39958
39959
  // src/select/select-item.tsx
39959
39960
  var import_react113 = require("react");
39961
+ var import_class_variance_authority18 = require("class-variance-authority");
39960
39962
  var SelectPrimitives = __toESM(require("@radix-ui/react-select"));
39961
39963
  var import_jsx_runtime128 = require("react/jsx-runtime");
39962
39964
  var SelectItem = (0, import_react113.forwardRef)((props, ref) => {
39963
- const { children, ...delegated } = props;
39965
+ const { children, className, ...delegated } = props;
39964
39966
  return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(SelectPrimitives.Item, {
39965
- className: "c-select-item",
39967
+ className: (0, import_class_variance_authority18.cx)("c-select-item", className),
39966
39968
  ref,
39967
39969
  ...delegated,
39968
39970
  children: [
@@ -39977,11 +39979,11 @@ SelectItem.displayName = "SelectItem";
39977
39979
 
39978
39980
  // src/select/select-root.tsx
39979
39981
  var import_react114 = require("react");
39980
- var import_class_variance_authority18 = require("class-variance-authority");
39982
+ var import_class_variance_authority19 = require("class-variance-authority");
39981
39983
  var SelectPrimitives2 = __toESM(require("@radix-ui/react-select"));
39982
39984
  init_iconography();
39983
39985
  var import_jsx_runtime129 = require("react/jsx-runtime");
39984
- var selectTriggerStyles = (0, import_class_variance_authority18.cva)("c-select-trigger", {
39986
+ var selectTriggerStyles = (0, import_class_variance_authority19.cva)("c-select-trigger", {
39985
39987
  variants: {
39986
39988
  size: {
39987
39989
  xs: "c-select-trigger-xs",
@@ -40041,12 +40043,12 @@ var Select = {
40041
40043
 
40042
40044
  // src/slider/slider.tsx
40043
40045
  var import_react115 = require("react");
40044
- var import_class_variance_authority19 = require("class-variance-authority");
40046
+ var import_class_variance_authority20 = require("class-variance-authority");
40045
40047
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
40046
40048
  var import_jsx_runtime130 = require("react/jsx-runtime");
40047
40049
  var Slider = (0, import_react115.forwardRef)(({ className, transparentRange, ...delegated }, ref) => {
40048
40050
  return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(SliderPrimitive.Root, {
40049
- className: (0, import_class_variance_authority19.cx)("c-slider-root", className),
40051
+ className: (0, import_class_variance_authority20.cx)("c-slider-root", className),
40050
40052
  ref,
40051
40053
  ...delegated,
40052
40054
  children: [
@@ -40087,10 +40089,10 @@ function StackIcon({ type, children, size = 18 }) {
40087
40089
  }
40088
40090
 
40089
40091
  // src/tag/tag.tsx
40090
- var import_class_variance_authority20 = require("class-variance-authority");
40092
+ var import_class_variance_authority21 = require("class-variance-authority");
40091
40093
  init_iconography();
40092
40094
  var import_jsx_runtime132 = require("react/jsx-runtime");
40093
- var tagStyles = (0, import_class_variance_authority20.cva)("c-tag", {
40095
+ var tagStyles = (0, import_class_variance_authority21.cva)("c-tag", {
40094
40096
  variants: {
40095
40097
  variant: {
40096
40098
  default: "c-tag-default",
@@ -40130,7 +40132,7 @@ function Tag({
40130
40132
  children,
40131
40133
  onRemove && /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("button", {
40132
40134
  type: "button",
40133
- className: (0, import_class_variance_authority20.cx)("c-tag__remove-button", showRemoveOnHover ? "c-tag__remove-button--hover" : ""),
40135
+ className: (0, import_class_variance_authority21.cx)("c-tag__remove-button", showRemoveOnHover ? "c-tag__remove-button--hover" : ""),
40134
40136
  onClick: (e) => {
40135
40137
  e.stopPropagation();
40136
40138
  onRemove();
@@ -40167,12 +40169,12 @@ var RichTextEditor2 = (props) => {
40167
40169
  var import_sonner2 = require("sonner");
40168
40170
 
40169
40171
  // src/toast/toast.tsx
40170
- var import_class_variance_authority21 = require("class-variance-authority");
40172
+ var import_class_variance_authority22 = require("class-variance-authority");
40171
40173
  var import_sonner = require("sonner");
40172
40174
  init_icon_button2();
40173
40175
  init_iconography();
40174
40176
  var import_jsx_runtime149 = require("react/jsx-runtime");
40175
- var toastStyles = (0, import_class_variance_authority21.cva)("c-toast", {
40177
+ var toastStyles = (0, import_class_variance_authority22.cva)("c-toast", {
40176
40178
  variants: {
40177
40179
  type: {
40178
40180
  info: "c-toast-info",
@@ -40198,7 +40200,7 @@ var toast = ({ title, message, type = "success", timeout = 6e3 }) => {
40198
40200
  import_sonner.toast.custom(
40199
40201
  (id) => /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", {
40200
40202
  "data-testid": `toast-${type}`,
40201
- className: (0, import_class_variance_authority21.cx)(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
40203
+ className: (0, import_class_variance_authority22.cx)(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
40202
40204
  children: [
40203
40205
  /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", {
40204
40206
  children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(ToastIcon, {
@@ -40245,10 +40247,10 @@ toast.dismiss = import_sonner.toast.dismiss;
40245
40247
  init_tooltip2();
40246
40248
 
40247
40249
  // src/switch/switch.tsx
40248
- var import_class_variance_authority22 = require("class-variance-authority");
40250
+ var import_class_variance_authority23 = require("class-variance-authority");
40249
40251
  var RadixSwitch = __toESM(require("@radix-ui/react-switch"));
40250
40252
  var import_jsx_runtime150 = require("react/jsx-runtime");
40251
- var switchStyles = (0, import_class_variance_authority22.cva)(["c-switch-root"], {
40253
+ var switchStyles = (0, import_class_variance_authority23.cva)(["c-switch-root"], {
40252
40254
  variants: {
40253
40255
  size: {
40254
40256
  xs: "c-switch-root-xs",
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  showError,
18
18
  showInfo,
19
19
  showWarning
20
- } from "./chunk-FWRBC56V.mjs";
20
+ } from "./chunk-7K3KQDTQ.mjs";
21
21
  import "./chunk-NIH5ZMPE.mjs";
22
22
 
23
23
  // src/card/card.tsx
@@ -226,12 +226,13 @@ var Radio = {
226
226
 
227
227
  // src/select/select-item.tsx
228
228
  import { forwardRef as forwardRef3 } from "react";
229
+ import { cx as cx4 } from "class-variance-authority";
229
230
  import * as SelectPrimitives from "@radix-ui/react-select";
230
231
  import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
231
232
  var SelectItem = forwardRef3((props, ref) => {
232
- const { children, ...delegated } = props;
233
+ const { children, className, ...delegated } = props;
233
234
  return /* @__PURE__ */ jsxs3(SelectPrimitives.Item, {
234
- className: "c-select-item",
235
+ className: cx4("c-select-item", className),
235
236
  ref,
236
237
  ...delegated,
237
238
  children: [
@@ -309,12 +310,12 @@ var Select = {
309
310
 
310
311
  // src/slider/slider.tsx
311
312
  import { forwardRef as forwardRef5 } from "react";
312
- import { cx as cx4 } from "class-variance-authority";
313
+ import { cx as cx5 } from "class-variance-authority";
313
314
  import * as SliderPrimitive from "@radix-ui/react-slider";
314
315
  import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
315
316
  var Slider = forwardRef5(({ className, transparentRange, ...delegated }, ref) => {
316
317
  return /* @__PURE__ */ jsxs5(SliderPrimitive.Root, {
317
- className: cx4("c-slider-root", className),
318
+ className: cx5("c-slider-root", className),
318
319
  ref,
319
320
  ...delegated,
320
321
  children: [
@@ -351,7 +352,7 @@ function StackIcon({ type, children, size = 18 }) {
351
352
  }
352
353
 
353
354
  // src/tag/tag.tsx
354
- import { cva as cva5, cx as cx5 } from "class-variance-authority";
355
+ import { cva as cva5, cx as cx6 } from "class-variance-authority";
355
356
  import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
356
357
  var tagStyles = cva5("c-tag", {
357
358
  variants: {
@@ -393,7 +394,7 @@ function Tag({
393
394
  children,
394
395
  onRemove && /* @__PURE__ */ jsxs7("button", {
395
396
  type: "button",
396
- className: cx5("c-tag__remove-button", showRemoveOnHover ? "c-tag__remove-button--hover" : ""),
397
+ className: cx6("c-tag__remove-button", showRemoveOnHover ? "c-tag__remove-button--hover" : ""),
397
398
  onClick: (e) => {
398
399
  e.stopPropagation();
399
400
  onRemove();
@@ -416,7 +417,7 @@ function Tag({
416
417
  // src/rich-text-editor/index.tsx
417
418
  import { lazy, Suspense } from "react";
418
419
  import { jsx as jsx13 } from "react/jsx-runtime";
419
- var LazyRichTextEditor = lazy(() => import("./rich-text-editor-6PGBZV6U.mjs"));
420
+ var LazyRichTextEditor = lazy(() => import("./rich-text-editor-ZJS3XSIV.mjs"));
420
421
  var RichTextEditor = (props) => {
421
422
  return /* @__PURE__ */ jsx13(Suspense, {
422
423
  fallback: null,
@@ -430,7 +431,7 @@ var RichTextEditor = (props) => {
430
431
  import { Toaster } from "sonner";
431
432
 
432
433
  // src/toast/toast.tsx
433
- import { cva as cva6, cx as cx6 } from "class-variance-authority";
434
+ import { cva as cva6, cx as cx7 } from "class-variance-authority";
434
435
  import { toast as sonnerToast } from "sonner";
435
436
  import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
436
437
  var toastStyles = cva6("c-toast", {
@@ -459,7 +460,7 @@ var toast = ({ title, message, type = "success", timeout = 6e3 }) => {
459
460
  sonnerToast.custom(
460
461
  (id) => /* @__PURE__ */ jsxs8("div", {
461
462
  "data-testid": `toast-${type}`,
462
- className: cx6(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
463
+ className: cx7(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
463
464
  children: [
464
465
  /* @__PURE__ */ jsx14("div", {
465
466
  children: /* @__PURE__ */ jsx14(ToastIcon, {
@@ -6,7 +6,7 @@ import {
6
6
  Icon,
7
7
  IconButton,
8
8
  InputWithLabel
9
- } from "./chunk-FWRBC56V.mjs";
9
+ } from "./chunk-7K3KQDTQ.mjs";
10
10
  import "./chunk-NIH5ZMPE.mjs";
11
11
 
12
12
  // src/rich-text-editor/rich-text-editor.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystallize/design-system",
3
- "version": "1.24.0",
3
+ "version": "1.24.2",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -4,7 +4,6 @@ import * as CollapsiblePrimitives from '@radix-ui/react-collapsible';
4
4
  import type { CollapsibleTriggerProps } from '@radix-ui/react-collapsible';
5
5
 
6
6
  import './collapsible.css';
7
-
8
7
  import { Icon } from '../iconography';
9
8
 
10
9
  type CollapsibleContentProps = ComponentProps<typeof CollapsiblePrimitives.Content>;
@@ -8,7 +8,7 @@ export const Piece = forwardRef<PieceRef, PieceProps>((delegated, ref) => {
8
8
  return (
9
9
  <svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
10
10
  <g clipPath="url(#a)">
11
- <path fill="#BFF6F8" d="M1.67 1.89h18.491v18.157H1.671V1.891Z" />
11
+ <path fill="#BFF6F8" d="M1.67 1.89h18.491v18.157H1.671V1.891Z" className="c-icon-fill" />
12
12
  <path
13
13
  fill="#fff"
14
14
  d="M11.232 10.957h2.232l1.159-3.053H16.5l1.43 3.053h2.232v9.091h-8.93v-2.842l3.063-.346v-2.136l-3.063-.361v-3.406Z"
@@ -1,14 +1,15 @@
1
1
  import { ComponentProps, forwardRef } from 'react';
2
+ import { cx } from 'class-variance-authority';
2
3
  import * as SelectPrimitives from '@radix-ui/react-select';
3
4
 
4
5
  export type SelectItemRef = HTMLDivElement;
5
6
  export type SelectItemProps = ComponentProps<typeof SelectPrimitives.Item>;
6
7
 
7
8
  export const SelectItem = forwardRef<SelectItemRef, SelectItemProps>((props, ref) => {
8
- const { children, ...delegated } = props;
9
+ const { children, className, ...delegated } = props;
9
10
 
10
11
  return (
11
- <SelectPrimitives.Item className="c-select-item" ref={ref} {...delegated}>
12
+ <SelectPrimitives.Item className={cx('c-select-item', className)} ref={ref} {...delegated}>
12
13
  <SelectPrimitives.ItemText>{children}</SelectPrimitives.ItemText>
13
14
  <SelectPrimitives.ItemIndicator />
14
15
  </SelectPrimitives.Item>
package/src/tag/tag.css CHANGED
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  &__remove-button {
11
- @apply m-0 -mr-2 cursor-pointer border-none bg-transparent p-0 text-[0];
11
+ @apply m-0 -mr-1 cursor-pointer border-none bg-transparent p-0 text-[0];
12
12
  }
13
13
 
14
14
  &__remove-button-text {
@@ -74,5 +74,5 @@ module.exports = {
74
74
  },
75
75
  },
76
76
  },
77
- plugins: [colorsPlugin, require('tailwindcss-radix')(), require('@tailwindcss/container-queries')],
77
+ plugins: [colorsPlugin, require('tailwindcss-radix')()],
78
78
  };