@ark-ui/solid 3.9.0 → 3.10.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.
package/dist/cjs/index.js CHANGED
@@ -711,7 +711,8 @@ function useCheckboxGroup(props = {}) {
711
711
  },
712
712
  name: props.name,
713
713
  disabled: props.disabled,
714
- readOnly: props.readOnly
714
+ readOnly: props.readOnly,
715
+ invalid: props.invalid
715
716
  };
716
717
  };
717
718
  return {
@@ -720,6 +721,7 @@ function useCheckboxGroup(props = {}) {
720
721
  name: props.name,
721
722
  disabled: props.disabled,
722
723
  readOnly: props.readOnly,
724
+ invalid: props.invalid,
723
725
  setValue,
724
726
  addValue,
725
727
  toggleValue,
@@ -735,7 +737,7 @@ const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createContext({
735
737
  });
736
738
 
737
739
  const CheckboxGroup = props => {
738
- const [checkboxGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'value', 'onValueChange', 'disabled', 'readOnly', 'name']);
740
+ const [checkboxGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'value', 'onValueChange', 'disabled', 'invalid', 'readOnly', 'name']);
739
741
  const checkboxGroup = useCheckboxGroup(checkboxGroupProps);
740
742
  return web.createComponent(CheckboxGroupContextProvider, {
741
743
  value: checkboxGroup,
@@ -4456,8 +4458,8 @@ const SelectHiddenSelect = props => {
4456
4458
  },
4457
4459
  children: item => (() => {
4458
4460
  var _el$2 = _tmpl$2$1();
4459
- web.effect(() => _el$2.disabled = select().collection.getItemDisabled(item));
4460
- web.effect(() => _el$2.value = select().collection.getItemValue(item) ?? '');
4461
+ web.effect(() => _el$2.disabled = select().collection.getItemDisabled(item()));
4462
+ web.effect(() => _el$2.value = select().collection.getItemValue(item()) ?? '');
4461
4463
  return _el$2;
4462
4464
  })()
4463
4465
  })];
@@ -6195,6 +6197,11 @@ const StepsContent = props => {
6195
6197
  return web.createComponent(ark.div, mergedProps);
6196
6198
  };
6197
6199
 
6200
+ const StepsContext = props => {
6201
+ const context = useStepsContext();
6202
+ return props.children(context);
6203
+ };
6204
+
6198
6205
  const [StepsItemPropsProvider, useStepsItemPropsContext] = createContext({
6199
6206
  hookName: 'useStepsItemPropsContext',
6200
6207
  providerName: '<StepsItemPropsProvider />'
@@ -6323,8 +6330,10 @@ var steps = /*#__PURE__*/Object.freeze({
6323
6330
  __proto__: null,
6324
6331
  CompletedContent: StepsCompletedContent,
6325
6332
  Content: StepsContent,
6333
+ Context: StepsContext,
6326
6334
  Indicator: StepsIndicator,
6327
6335
  Item: StepsItem,
6336
+ ItemContext: StepsItemContext,
6328
6337
  List: StepsList,
6329
6338
  NextTrigger: StepsNextTrigger,
6330
6339
  PrevTrigger: StepsPrevTrigger,
@@ -6451,6 +6460,10 @@ Object.defineProperty(exports, "treeViewAnatomy", {
6451
6460
  enumerable: true,
6452
6461
  get: function () { return treeView$1.anatomy; }
6453
6462
  });
6463
+ Object.defineProperty(exports, "stepsAnatomy", {
6464
+ enumerable: true,
6465
+ get: function () { return steps$1.anatomy; }
6466
+ });
6454
6467
  exports.Accordion = accordion;
6455
6468
  exports.AccordionContext = AccordionContext;
6456
6469
  exports.AccordionItem = AccordionItem;
@@ -6814,6 +6827,7 @@ exports.SplitterRootProvider = SplitterRootProvider;
6814
6827
  exports.Steps = steps;
6815
6828
  exports.StepsCompletedContent = StepsCompletedContent;
6816
6829
  exports.StepsContent = StepsContent;
6830
+ exports.StepsContext = StepsContext;
6817
6831
  exports.StepsIndicator = StepsIndicator;
6818
6832
  exports.StepsItem = StepsItem;
6819
6833
  exports.StepsItemContext = StepsItemContext;