cetec-design-system 3.1.1-0 → 3.2.1-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.
@@ -1060,6 +1060,22 @@
1060
1060
  "category": "Shapes",
1061
1061
  "deprecated": false
1062
1062
  },
1063
+ "circle-dashed": {
1064
+ "aliases": [
1065
+ "circle dashed",
1066
+ "dashed circle",
1067
+ "dotted circle",
1068
+ "empty",
1069
+ "placeholder",
1070
+ "draft",
1071
+ "pending",
1072
+ "not started",
1073
+ "backlog"
1074
+ ],
1075
+ "tags": [],
1076
+ "category": "Shapes",
1077
+ "deprecated": false
1078
+ },
1063
1079
  "circles-add": {
1064
1080
  "aliases": [
1065
1081
  "round",
@@ -3122,6 +3138,21 @@
3122
3138
  "category": "Doc / note",
3123
3139
  "deprecated": false
3124
3140
  },
3141
+ "not-equal": {
3142
+ "aliases": [
3143
+ "not equal",
3144
+ "not equals",
3145
+ "inequality",
3146
+ "unequal",
3147
+ "different",
3148
+ "mismatch",
3149
+ "≠",
3150
+ "!="
3151
+ ],
3152
+ "tags": ["math"],
3153
+ "category": "Math",
3154
+ "deprecated": false
3155
+ },
3125
3156
  "note": {
3126
3157
  "aliases": [
3127
3158
  "notes",
@@ -4176,6 +4207,21 @@
4176
4207
  "category": "Shapes",
4177
4208
  "deprecated": false
4178
4209
  },
4210
+ "square-dashed": {
4211
+ "aliases": [
4212
+ "square dashed",
4213
+ "dashed square",
4214
+ "dotted square",
4215
+ "marquee",
4216
+ "selection area",
4217
+ "bounding box",
4218
+ "drop zone",
4219
+ "empty slot"
4220
+ ],
4221
+ "tags": [],
4222
+ "category": "Shapes",
4223
+ "deprecated": false
4224
+ },
4179
4225
  "square-inside": {
4180
4226
  "aliases": [
4181
4227
  "square inside",
package/dist/index.js CHANGED
@@ -2649,7 +2649,8 @@ const menuFn = memo((props = {}) => {
2649
2649
  const menuVariantKeys = [
2650
2650
  "layer",
2651
2651
  "density",
2652
- "panel"
2652
+ "panel",
2653
+ "scrollable"
2653
2654
  ];
2654
2655
  const getVariantProps$a = (variants) => ({ ...menuDefaultVariants, ...compact(variants) });
2655
2656
  const menu = /* @__PURE__ */ Object.assign(menuFn, {
@@ -2670,6 +2671,9 @@ const menu = /* @__PURE__ */ Object.assign(menuFn, {
2670
2671
  ],
2671
2672
  "panel": [
2672
2673
  "true"
2674
+ ],
2675
+ "scrollable": [
2676
+ "true"
2673
2677
  ]
2674
2678
  },
2675
2679
  splitVariantProps(props) {
@@ -3583,6 +3587,7 @@ const IconNames = {
3583
3587
  cheese: "cheese",
3584
3588
  "circle-change": "circle-change",
3585
3589
  "circle-check": "circle-check",
3590
+ "circle-dashed": "circle-dashed",
3586
3591
  circle: "circle",
3587
3592
  "circles-add": "circles-add",
3588
3593
  circuit: "circuit",
@@ -3712,6 +3717,7 @@ const IconNames = {
3712
3717
  network: "network",
3713
3718
  "newspaper-clipping": "newspaper-clipping",
3714
3719
  newspaper: "newspaper",
3720
+ "not-equal": "not-equal",
3715
3721
  "note-stack": "note-stack",
3716
3722
  note: "note",
3717
3723
  notepad: "notepad",
@@ -3780,6 +3786,7 @@ const IconNames = {
3780
3786
  sparkle: "sparkle",
3781
3787
  spinner: "spinner",
3782
3788
  "square-add": "square-add",
3789
+ "square-dashed": "square-dashed",
3783
3790
  "square-inside": "square-inside",
3784
3791
  "square-select": "square-select",
3785
3792
  square: "square",
@@ -23235,9 +23242,19 @@ const Select = (props) => {
23235
23242
  middleware: createOverlayMiddleware({
23236
23243
  offset: offset2,
23237
23244
  extras: [
23245
+ // Floating UI only positions the listbox; without a height cap a long
23246
+ // option list overflows the viewport on whichever side flip() picks.
23247
+ // Only measured values are written here; the `menu` recipe's
23248
+ // `scrollable` variant applies the cap and scrolling. `padding`
23249
+ // mirrors the overlay middleware's default `shiftPadding`.
23238
23250
  size({
23239
- apply({ rects, elements }) {
23251
+ padding: 8,
23252
+ apply({ rects, elements, availableHeight }) {
23240
23253
  elements.floating.style.minWidth = `${rects.reference.width}px`;
23254
+ elements.floating.style.setProperty(
23255
+ "--available-height",
23256
+ `${Math.max(availableHeight, 0)}px`
23257
+ );
23241
23258
  }
23242
23259
  })
23243
23260
  ]
@@ -23245,6 +23262,14 @@ const Select = (props) => {
23245
23262
  });
23246
23263
  const itemRefs = useRef([]);
23247
23264
  const labelsRef = useRef([]);
23265
+ const { isPositioned } = floating;
23266
+ useLayoutEffect(() => {
23267
+ var _a;
23268
+ if (!isOpen || !isPositioned || initialActiveIndex === null) {
23269
+ return;
23270
+ }
23271
+ (_a = itemRefs.current[initialActiveIndex]) == null ? void 0 : _a.scrollIntoView({ block: "nearest" });
23272
+ }, [isOpen, isPositioned]);
23248
23273
  const click = useClick(floating.context, {
23249
23274
  enabled: !disabled
23250
23275
  });
@@ -23276,7 +23301,11 @@ const Select = (props) => {
23276
23301
  );
23277
23302
  const selectedOptions = getSelectedOptions(options, value, multiple);
23278
23303
  const classes = select({ size: size$12, multiple, autoSize });
23279
- const menuClasses = menu({ density, layer: floatingLayer });
23304
+ const menuClasses = menu({
23305
+ density,
23306
+ layer: floatingLayer,
23307
+ scrollable: true
23308
+ });
23280
23309
  const hasValue = value !== null && value !== void 0 && value !== "";
23281
23310
  const chipSize = resolveChipSize(size$12);
23282
23311
  const accessibleName = typeof displayValue === "string" && displayValue.length > 0 ? displayValue : placeholder;