cetec-design-system 2.0.2-0 → 2.0.2-next.0

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.
@@ -5543,6 +5543,8 @@ const tagRecipe = defineRecipe({
5543
5543
  variant: "default",
5544
5544
  hue: "slate"
5545
5545
  },
5546
+ // validate-ignore: avoid-compound-variants-in-recipes — tag color pairing is a fixed token matrix and clearer as declarative compound variants
5547
+ // eslint-disable-next-line cetec/avoid-compound-variants-in-recipes
5546
5548
  compoundVariants: [
5547
5549
  {
5548
5550
  hue: "slate",
@@ -5874,6 +5876,7 @@ const iconRecipe = defineRecipe({
5874
5876
  base: {
5875
5877
  aspectRatio: "square",
5876
5878
  fill: "icon.decorative",
5879
+ flexShrink: 0,
5877
5880
  w: "24"
5878
5881
  // Default size here does not affect the classNames, so it's safe to set
5879
5882
  },
@@ -8318,6 +8321,270 @@ const breadcrumbsRecipe = defineSlotRecipe({
8318
8321
  }
8319
8322
  }
8320
8323
  });
8324
+ const selectBase = {
8325
+ root: {
8326
+ "--icon-size": "token(sizes.24)",
8327
+ "--icon-margin": "token(sizes.3)",
8328
+ "--input-icon-padding": "token(sizes.10)",
8329
+ display: "inline-flex",
8330
+ flexDirection: "column",
8331
+ position: "relative",
8332
+ minWidth: "0",
8333
+ maxW: "full",
8334
+ width: "fit"
8335
+ },
8336
+ trigger: {
8337
+ position: "relative",
8338
+ display: "inline-flex",
8339
+ alignItems: "center",
8340
+ width: "fit",
8341
+ minWidth: "0",
8342
+ maxWidth: "full",
8343
+ pe: "var(--input-icon-padding)",
8344
+ borderWidth: "1",
8345
+ borderStyle: "solid",
8346
+ borderColor: "border.input",
8347
+ borderRadius: "4",
8348
+ outlineWidth: "2",
8349
+ outlineOffset: "-1",
8350
+ outlineStyle: "solid",
8351
+ outlineColor: "transparent",
8352
+ bg: "bg.input",
8353
+ color: "text",
8354
+ fontFamily: "body",
8355
+ lineHeight: "default",
8356
+ cursor: "pointer",
8357
+ overflow: "hidden",
8358
+ transitionDuration: "fast",
8359
+ transitionProperty: "background, border-color, outline-color",
8360
+ transitionTimingFunction: "default",
8361
+ _hover: {
8362
+ bg: "bg.input.hovered"
8363
+ },
8364
+ _focusVisible: {
8365
+ bg: "bg.input.pressed",
8366
+ borderColor: "border.focused",
8367
+ outlineColor: "border.focused"
8368
+ },
8369
+ _open: {
8370
+ bg: "bg.input.pressed",
8371
+ borderColor: "border.focused",
8372
+ outlineColor: "border.focused"
8373
+ },
8374
+ _disabled: {
8375
+ bg: "bg.disabled",
8376
+ borderColor: "border.disabled",
8377
+ color: "text.disabled",
8378
+ cursor: "not-allowed",
8379
+ pointerEvents: "none"
8380
+ },
8381
+ _error: {
8382
+ borderColor: "border.danger",
8383
+ _hover: {
8384
+ borderColor: "border.danger"
8385
+ },
8386
+ _focusVisible: {
8387
+ borderColor: "border.danger",
8388
+ outlineColor: "border.danger"
8389
+ },
8390
+ _open: {
8391
+ borderColor: "border.danger",
8392
+ outlineColor: "border.danger"
8393
+ }
8394
+ }
8395
+ },
8396
+ content: {
8397
+ display: "flex",
8398
+ alignItems: "center",
8399
+ minWidth: "0",
8400
+ width: "full",
8401
+ flex: "1"
8402
+ },
8403
+ value: {
8404
+ flex: 1,
8405
+ minWidth: "0",
8406
+ textAlign: "left",
8407
+ truncate: true,
8408
+ color: "text"
8409
+ },
8410
+ placeholder: {
8411
+ flex: 1,
8412
+ minWidth: "0",
8413
+ textAlign: "left",
8414
+ truncate: true,
8415
+ color: "text.placeholder"
8416
+ },
8417
+ chips: {
8418
+ display: "flex",
8419
+ alignItems: "center",
8420
+ gap: "4",
8421
+ minWidth: "0",
8422
+ width: "full",
8423
+ flex: "1",
8424
+ overflowX: "auto",
8425
+ overflowY: "hidden",
8426
+ scrollbarWidth: "thin"
8427
+ },
8428
+ icon: {
8429
+ position: "absolute",
8430
+ top: "50%",
8431
+ right: "1",
8432
+ display: "inline-flex",
8433
+ alignItems: "center",
8434
+ justifyContent: "center",
8435
+ width: "var(--icon-size)",
8436
+ height: "var(--icon-size)",
8437
+ marginInline: "var(--icon-margin)",
8438
+ transform: "translateY(-50%)",
8439
+ bg: "bg.input",
8440
+ fill: "icon.decorative",
8441
+ pointerEvents: "none",
8442
+ transitionDuration: "fast",
8443
+ transitionProperty: "all",
8444
+ transitionTimingFunction: "default",
8445
+ _icon: {
8446
+ width: "var(--icon-size)",
8447
+ height: "var(--icon-size)",
8448
+ transitionDuration: "fast",
8449
+ transitionProperty: "all",
8450
+ transitionTimingFunction: "default"
8451
+ },
8452
+ _peerHover: {
8453
+ bg: "bg.input.hovered"
8454
+ },
8455
+ _open: {
8456
+ "& > svg": {
8457
+ transform: "rotate(-180deg)",
8458
+ transformOrigin: "center"
8459
+ }
8460
+ }
8461
+ }
8462
+ };
8463
+ const selectVariants = {
8464
+ size: {
8465
+ sm: {
8466
+ root: {
8467
+ "--icon-size": "token(sizes.22)",
8468
+ "--icon-margin": "token(sizes.2)",
8469
+ "--input-icon-padding": "[26px]"
8470
+ },
8471
+ content: {
8472
+ py: "0",
8473
+ ps: "8",
8474
+ fontSize: "14"
8475
+ },
8476
+ chips: {
8477
+ gap: "3",
8478
+ py: "2"
8479
+ }
8480
+ },
8481
+ md: {
8482
+ root: {
8483
+ "--icon-size": "token(sizes.24)",
8484
+ "--icon-margin": "token(sizes.3)",
8485
+ "--input-icon-padding": "[31px]"
8486
+ },
8487
+ content: {
8488
+ py: "3",
8489
+ ps: "10",
8490
+ fontSize: "16"
8491
+ },
8492
+ chips: {
8493
+ gap: "4",
8494
+ py: "5"
8495
+ }
8496
+ },
8497
+ lg: {
8498
+ root: {
8499
+ "--icon-size": "token(sizes.24)",
8500
+ "--icon-margin": "token(sizes.5)",
8501
+ "--input-icon-padding": "[34px]"
8502
+ },
8503
+ content: {
8504
+ py: "7",
8505
+ ps: "12",
8506
+ fontSize: "16"
8507
+ },
8508
+ chips: {
8509
+ gap: "5",
8510
+ py: "0"
8511
+ }
8512
+ },
8513
+ xl: {
8514
+ root: {
8515
+ "--icon-size": "token(sizes.28)",
8516
+ "--icon-margin": "token(sizes.7)",
8517
+ "--input-icon-padding": "[42px]"
8518
+ },
8519
+ content: {
8520
+ py: "9",
8521
+ ps: "16",
8522
+ fontSize: "20"
8523
+ },
8524
+ chips: {
8525
+ gap: "6",
8526
+ py: "2"
8527
+ }
8528
+ }
8529
+ },
8530
+ multiple: {
8531
+ true: {
8532
+ trigger: {
8533
+ alignItems: "flex-start"
8534
+ },
8535
+ content: {
8536
+ alignItems: "flex-start"
8537
+ }
8538
+ }
8539
+ },
8540
+ autoSize: {
8541
+ true: {
8542
+ trigger: {
8543
+ height: "auto"
8544
+ },
8545
+ value: {
8546
+ whiteSpace: "normal",
8547
+ textWrap: "wrap",
8548
+ overflow: "visible",
8549
+ textOverflow: "clip"
8550
+ },
8551
+ placeholder: {
8552
+ whiteSpace: "normal",
8553
+ textWrap: "wrap",
8554
+ overflow: "visible",
8555
+ textOverflow: "clip"
8556
+ },
8557
+ chips: {
8558
+ flexWrap: "wrap",
8559
+ overflowX: "visible",
8560
+ overflowY: "visible"
8561
+ }
8562
+ },
8563
+ false: {
8564
+ chips: {
8565
+ flexWrap: "nowrap"
8566
+ }
8567
+ }
8568
+ }
8569
+ };
8570
+ const selectRecipe = defineSlotRecipe({
8571
+ className: "select",
8572
+ jsx: ["Select"],
8573
+ slots: [
8574
+ "root",
8575
+ "trigger",
8576
+ "content",
8577
+ "value",
8578
+ "placeholder",
8579
+ "chips",
8580
+ "icon"
8581
+ ],
8582
+ base: selectBase,
8583
+ variants: selectVariants,
8584
+ defaultVariants: {
8585
+ size: "md"
8586
+ }
8587
+ });
8321
8588
  const kbdRecipe = defineSlotRecipe({
8322
8589
  className: "kbd",
8323
8590
  slots: ["kbdGroup", "key"],
@@ -8386,6 +8653,7 @@ const slotRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
8386
8653
  menuRecipe,
8387
8654
  modalRecipe,
8388
8655
  radioRecipe,
8656
+ selectRecipe,
8389
8657
  textInputRecipe,
8390
8658
  timePickerRecipe,
8391
8659
  tooltipRecipe
@@ -9707,4 +9975,4 @@ export {
9707
9975
  breakpoints as b,
9708
9976
  containerSizes as c
9709
9977
  };
9710
- //# sourceMappingURL=cetec-preset-CMHb1Xn9.js.map
9978
+ //# sourceMappingURL=cetec-preset-DRK1vtb1.js.map