@iyulab/components 1.25.0 → 1.27.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +1 -1
  3. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.143.0}/helpers/esm/decorate.js +1 -1
  4. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.143.0}/helpers/esm/decorateMetadata.js +1 -1
  5. package/dist/_virtual/_glob-assets_raw/calendar.svg.02c3abd8.js +4 -0
  6. package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +1 -1
  7. package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +1 -1
  8. package/dist/components/UFloatingElement.js +2 -2
  9. package/dist/components/UFormControlElement.js +2 -2
  10. package/dist/components/UOverlayElement.js +6 -4
  11. package/dist/components/alert/UAlert.js +2 -2
  12. package/dist/components/avatar/UAvatar.js +2 -2
  13. package/dist/components/badge/UBadge.js +2 -2
  14. package/dist/components/breadcrumb/UBreadcrumb.js +1 -1
  15. package/dist/components/breadcrumb-item/UBreadcrumbItem.js +2 -2
  16. package/dist/components/button/UButton.js +2 -2
  17. package/dist/components/button/UButton.styles.js +5 -1
  18. package/dist/components/button-group/UButtonGroup.js +10 -9
  19. package/dist/components/button-group/UButtonGroup.styles.js +2 -1
  20. package/dist/components/card/UCard.js +2 -2
  21. package/dist/components/carousel/UCarousel.js +6 -4
  22. package/dist/components/checkbox/UCheckbox.js +2 -2
  23. package/dist/components/chip/UChip.js +2 -2
  24. package/dist/components/copy-button/UCopyButton.js +2 -2
  25. package/dist/components/date-picker/UDatePicker.d.ts +70 -0
  26. package/dist/components/date-picker/UDatePicker.js +306 -0
  27. package/dist/components/date-picker/UDatePicker.styles.d.ts +1 -0
  28. package/dist/components/date-picker/UDatePicker.styles.js +147 -0
  29. package/dist/components/dialog/UDialog.js +2 -2
  30. package/dist/components/divider/UDivider.js +2 -2
  31. package/dist/components/drawer/UDrawer.js +2 -2
  32. package/dist/components/expander/UExpander.js +2 -2
  33. package/dist/components/field/UField.js +2 -2
  34. package/dist/components/form/UForm.js +2 -2
  35. package/dist/components/form/UForm.styles.js +2 -1
  36. package/dist/components/icon/UIcon.js +2 -2
  37. package/dist/components/icon-button/UIconButton.js +2 -2
  38. package/dist/components/input/UInput.js +3 -3
  39. package/dist/components/menu/UMenu.js +6 -4
  40. package/dist/components/menu-item/UMenuItem.js +3 -3
  41. package/dist/components/option/UOption.js +2 -2
  42. package/dist/components/panel/UPanel.js +2 -2
  43. package/dist/components/popover/UPopover.js +2 -2
  44. package/dist/components/progress-bar/UProgressBar.js +2 -2
  45. package/dist/components/progress-ring/UProgressRing.js +2 -2
  46. package/dist/components/radio/URadio.js +2 -2
  47. package/dist/components/rating/URating.js +2 -2
  48. package/dist/components/select/USelect.js +3 -3
  49. package/dist/components/skeleton/USkeleton.js +2 -2
  50. package/dist/components/slider/USlider.js +10 -8
  51. package/dist/components/spinner/USpinner.js +2 -2
  52. package/dist/components/split-panel/USplitPanel.js +2 -2
  53. package/dist/components/switch/USwitch.js +2 -2
  54. package/dist/components/tab/UTab.js +2 -2
  55. package/dist/components/tab-panel/UTabPanel.js +2 -2
  56. package/dist/components/tag/UTag.js +2 -2
  57. package/dist/components/text/UText.js +2 -2
  58. package/dist/components/textarea/UTextarea.js +2 -2
  59. package/dist/components/tooltip/UTooltip.js +13 -11
  60. package/dist/components/tree/UTree.js +8 -6
  61. package/dist/components/tree-item/UTreeItem.js +2 -2
  62. package/dist/index.d.ts +2 -0
  63. package/dist/index.js +5 -3
  64. package/dist/react/UDatePicker.d.ts +13 -0
  65. package/dist/react/UDatePicker.js +12 -0
  66. package/dist/react/index.d.ts +1 -0
  67. package/dist/react/index.js +1 -0
  68. package/dist/styles/dark.css +17 -1
  69. package/dist/styles/light.css +11 -0
  70. package/dist/utilities/format.d.ts +25 -0
  71. package/dist/utilities/format.js +61 -0
  72. package/dist/utilities/icons.js +2 -0
  73. package/package.json +5 -2
  74. package/skills/iyulab-components/references/components/date-picker.md +71 -0
@@ -0,0 +1,71 @@
1
+ # u-date-picker
2
+
3
+ ```ts
4
+ import '@iyulab/components/dist/components/date-picker/UDatePicker.js';
5
+ ```
6
+
7
+ **Tag:** `u-date-picker`
8
+
9
+ Single-date selection with a popover calendar. The value follows the same convention as the native `input[type=date]`: an ISO `YYYY-MM-DD` string. Form-associated.
10
+
11
+ > The calendar week always starts on Sunday, regardless of locale.
12
+
13
+ ```html
14
+ <u-date-picker name="start-date" label="Start date"></u-date-picker>
15
+
16
+ <!-- Clearable with a bounded range -->
17
+ <u-date-picker name="due-date" label="Due date" clearable min="2026-01-01" max="2026-12-31"></u-date-picker>
18
+ ```
19
+
20
+ ---
21
+
22
+ ## Properties
23
+
24
+ | Property | Type | Default | Reflect | Description |
25
+ |----------|------|---------|---------|-------------|
26
+ | `value` | `string` | — | — | Selected date (ISO `YYYY-MM-DD`) |
27
+ | `min` | `string` | — | — | Minimum selectable date (ISO `YYYY-MM-DD`) |
28
+ | `max` | `string` | — | — | Maximum selectable date (ISO `YYYY-MM-DD`) |
29
+ | `clearable` | `boolean` | `false` | ✓ | Show clear button |
30
+ | `placeholder` | `string` | — | — | Placeholder text |
31
+ | `disabled` | `boolean` | `false` | ✓ | Disable |
32
+ | `readonly` | `boolean` | `false` | ✓ | Read-only |
33
+ | `required` | `boolean` | `false` | ✓ | Required |
34
+ | `invalid` | `boolean` | `false` | ✓ | Validation failed |
35
+ | `name` | `string` | — | — | Form field name |
36
+ | `label` | `string` | — | — | Field label |
37
+ | `description` | `string` | — | — | Helper text |
38
+ | `validationMessage` | `string` | — | — | Custom validation message |
39
+
40
+ ## Events
41
+
42
+ | Event | Description |
43
+ |-------|-------------|
44
+ | `change` | Fires when the user clicks a date cell, confirms via keyboard, or clicks the clear button. Programmatic value assignment does not fire it. |
45
+
46
+ ## Methods
47
+
48
+ | Method | Description |
49
+ |--------|--------------|
50
+ | `validate()` | Validate; sets `invalid` |
51
+ | `reset()` | Reset value |
52
+
53
+ ## CSS Parts
54
+
55
+ | Part | Description |
56
+ |------|-------------|
57
+ | `field` | The `u-field` element |
58
+ | `container` | The element wrapping the trigger area |
59
+ | `popover` | The popover element showing the calendar |
60
+ | `calendar` | The calendar container |
61
+ | `calendar-header` | The month navigation header |
62
+ | `calendar-title` | The "Month Year" title |
63
+ | `calendar-weekdays` | The weekday header row |
64
+ | `calendar-grid` | The date grid |
65
+ | `day` | A date cell button |
66
+
67
+ ## CSS Custom Properties
68
+
69
+ | Property | Description |
70
+ |----------|-------------|
71
+ | `--date-picker-popover-width` | Width of the calendar popover (default: 296px, independent of trigger width — a fixed-width calendar reads more naturally) |