@kenos-ui/react-datepicker 0.3.3 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,11 +1,20 @@
1
1
  # @kenos-ui/react-datepicker
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - docs(readme): major update to README
8
+ - Document the unified `DatePicker.Root` + `mode` API correctly
9
+ - Highlight the segmented `<DatePicker.Input />` as the main feature
10
+ - Add clear examples for range (dual inputs + hover preview), multiple, and full composition
11
+ - Improve props, localization and advanced Content sections
12
+
3
13
  ## 0.3.3
4
14
 
5
15
  ### Patch Changes
6
16
 
7
17
  - docs: major refresh of README.md and root documentation
8
-
9
18
  - Update package README to accurately reflect current API (unified `DatePicker.Root` with `mode`, first-class `<DatePicker.Input>`, full composition)
10
19
  - Add strong examples for segmented input, range with dual inputs + hover preview, multiple selection, and custom rendering
11
20
  - Align with brand voice and recent announcement content
@@ -29,7 +38,6 @@
29
38
  ### Minor Changes
30
39
 
31
40
  - Axis lift-and-shift: publish DatePicker under `@at5/axis-datepicker`.
32
-
33
41
  - Add `@at5/axis-datepicker` — same DatePicker API and behavior as `@at5/kairo` (migrated from `packages/kairo` to `packages/datepicker`)
34
42
  - Add `@at5/axis` — aggregator re-exporting `DatePicker`
35
43
  - `@at5/kairo` — deprecated; thin re-export of `@at5/axis-datepicker` for transition
package/README.md CHANGED
@@ -111,9 +111,7 @@ Or take full control:
111
111
  <DatePicker.Day key={j} date={d}>
112
112
  {({ isSelected, isToday }) => (
113
113
  // custom rendering
114
- <span className={isSelected ? "selected" : ""}>
115
- {d.getDate()}
116
- </span>
114
+ <span className={isSelected ? "selected" : ""}>{d.getDate()}</span>
117
115
  )}
118
116
  </DatePicker.Day>
119
117
  ))}
@@ -188,4 +186,4 @@ MIT
188
186
 
189
187
  ---
190
188
 
191
- *Kenos UI* — https://github.com/allysontsoares/kenos-ui/tree/main/packages/datepicker
189
+ _Kenos UI_ — https://github.com/allysontsoares/kenos-ui/tree/main/packages/datepicker
package/dist/index.cjs CHANGED
@@ -918,11 +918,7 @@ function Content({
918
918
  input: document.getElementById(ids.input) ?? document.getElementById(`${ids.input}-0`)
919
919
  });
920
920
  }, [dispatch, ids.input, ids.trigger, state.openSource]);
921
- utils.useClickOutside(
922
- [contentRef, triggerRef, inputRef, input0Ref, input1Ref],
923
- close,
924
- isOpen
925
- );
921
+ utils.useClickOutside([contentRef, triggerRef, inputRef, input0Ref, input1Ref], close, isOpen);
926
922
  utils.useEscapeKey({
927
923
  enabled: isOpen,
928
924
  stopPropagation: true,