antd-solid 0.0.25 → 0.0.27

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.esm.js CHANGED
@@ -702,7 +702,7 @@ function createControllableValue(props, options = {}) {
702
702
  const setValue = v => {
703
703
  const _value = untrack(value);
704
704
  const newValue = typeof v === 'function' ? v(_value) : v;
705
- if (newValue === _value) return;
705
+ if (newValue === _value) return newValue;
706
706
  if (!isControlled()) {
707
707
  _setValue(newValue);
708
708
  }
@@ -2527,7 +2527,7 @@ var _tmpl$$D = /*#__PURE__*/template(`<div class=w-full>`),
2527
2527
  _tmpl$3$f = /*#__PURE__*/template(`<div tabindex=0><div>`),
2528
2528
  _tmpl$4$9 = /*#__PURE__*/template(`<div class="w-[--ant-select-popup-match-width] max-h-400px overflow-auto [font-size:var(--ant-select-popup-font-size)]">`),
2529
2529
  _tmpl$5$5 = /*#__PURE__*/template(`<span class="inline-block w-0"> `),
2530
- _tmpl$6$2 = /*#__PURE__*/template(`<span class="block w-full h-[calc(var(--ant-select-input-height)-2px)] leading-[calc(var(--ant-select-input-height)-2px)] text-[var(--ant-color-text-placeholder)]">`),
2530
+ _tmpl$6$2 = /*#__PURE__*/template(`<span class="block w-full h-[calc(var(--ant-select-input-height)-2px)] leading-[calc(var(--ant-select-input-height)-2px)] text-[var(--ant-color-text-placeholder)] ellipsis">`),
2531
2531
  _tmpl$7$1 = /*#__PURE__*/template(`<div class="w-full h-[calc(var(--ant-select-input-height)-2px)] leading-[calc(var(--ant-select-input-height)-2px)] ellipsis">`),
2532
2532
  _tmpl$8 = /*#__PURE__*/template(`<span class="inline-block my-2px mr-4px bg-[var(--ant-select-multiple-item-bg)] leading-[var(--ant-select-multiple-item-height)] h-[var(--ant-select-multiple-item-height)] pl-8px pr-4px rounded-[var(--ant-border-radius-sm)]"><span class="i-ant-design:close-outlined text-[var(--ant-color-icon)] hover:text-[var(--ant-color-icon-hover)] text-12px cursor-pointer">`),
2533
2533
  _tmpl$9 = /*#__PURE__*/template(`<span class="i-ant-design:down-outlined text-[var(--ant-color-text-quaternary)] text-12px">`);
@@ -2943,16 +2943,16 @@ const Checkbox = props => {
2943
2943
  _el$2 = _el$.firstChild;
2944
2944
  _el$2.addEventListener("change", e => {
2945
2945
  if (props.disabled) return;
2946
- e.target.checked = setChecked(v => !v);
2946
+ e.target.checked = props.indeterminate ? setChecked(true) : setChecked(v => !v);
2947
2947
  props.onChange?.(e);
2948
2948
  });
2949
2949
  effect(() => className(_el$, cs('w-16px h-16px rounded-[var(--ant-border-radius-sm)] relative', (() => {
2950
- if (checked()) {
2951
- return ['after:content-empty after:block after:absolute after:top-[calc(50%-1px)] after:left-1/2 after:-translate-1/2 after:-rotate-45 after:w-10px after:h-6px', 'after:border-solid after:border-2px after:border-t-0px after:border-r-0px', props.disabled ? 'bg-[var(--ant-color-bg-container-disabled)] [border:1px_solid_var(--ant-color-border)] after:border-[var(--ant-color-text-disabled)]' : 'bg-[var(--ant-color-primary)] after:border-white'];
2952
- }
2953
2950
  if (props.indeterminate) {
2954
2951
  return ['[border:1px_solid_var(--ant-color-border)]', 'after:content-empty after:block after:absolute after:top-1/2 after:left-1/2 after:-translate-1/2 after:w-8px after:h-8px', props.disabled ? 'after:bg-[var(--ant-color-text-disabled)]' : 'after:bg-[var(--ant-color-primary)]'];
2955
2952
  }
2953
+ if (checked()) {
2954
+ return ['after:content-empty after:block after:absolute after:top-[calc(50%-1px)] after:left-1/2 after:-translate-1/2 after:-rotate-45 after:w-10px after:h-6px', 'after:border-solid after:border-2px after:border-t-0px after:border-r-0px', props.disabled ? 'bg-[var(--ant-color-bg-container-disabled)] [border:1px_solid_var(--ant-color-border)] after:border-[var(--ant-color-text-disabled)]' : 'bg-[var(--ant-color-primary)] after:border-white'];
2955
+ }
2956
2956
  return ['[border:1px_solid_var(--ant-color-border)]', props.disabled ? 'bg-[var(--ant-color-bg-container-disabled)]' : 'bg-[--ant-color-bg-container]'];
2957
2957
  })())));
2958
2958
  return _el$;
@@ -5283,7 +5283,7 @@ var _tmpl$$f = /*#__PURE__*/template(`<label class=mr-4px>`),
5283
5283
  _tmpl$2$6 = /*#__PURE__*/template(`<span class=text-[var(--ant-color-error)]>*`),
5284
5284
  _tmpl$3$6 = /*#__PURE__*/template(`<div class="flex items-center"><label>`),
5285
5285
  _tmpl$4$4 = /*#__PURE__*/template(`<div class="absolute top-[100%] text-[var(--ant-color-error)]">`),
5286
- _tmpl$5$3 = /*#__PURE__*/template(`<div class="flex flex-col relative flex-grow-1"><div>`);
5286
+ _tmpl$5$3 = /*#__PURE__*/template(`<div class="flex flex-col relative flex-grow-1"><div class=flex>`);
5287
5287
  const FormItem = props => {
5288
5288
  const {
5289
5289
  formInstance,