@jirawatpyk/aura-react 4.7.2 → 4.9.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 (50) hide show
  1. package/README.md +3 -3
  2. package/dist/aura.bundle.js +1075 -595
  3. package/dist/cjs/index.cjs +1074 -594
  4. package/dist/esm/Accordion.js +66 -0
  5. package/dist/esm/Alert.js +31 -0
  6. package/dist/esm/AppShell.js +55 -0
  7. package/dist/esm/Avatar.js +39 -0
  8. package/dist/esm/Badge.js +26 -0
  9. package/dist/esm/Breadcrumb.js +16 -0
  10. package/dist/esm/Card.js +26 -0
  11. package/dist/esm/Combobox.js +311 -236
  12. package/dist/esm/Container.js +18 -0
  13. package/dist/esm/DatePicker.js +1 -1
  14. package/dist/esm/Dialog.js +1 -1
  15. package/dist/esm/EmptyState.js +22 -0
  16. package/dist/esm/Field.js +46 -0
  17. package/dist/esm/FileUpload.js +1 -1
  18. package/dist/esm/Grid.js +21 -0
  19. package/dist/esm/NumberField.js +175 -0
  20. package/dist/esm/Pagination.js +94 -0
  21. package/dist/esm/Popover.js +131 -0
  22. package/dist/esm/Progress.js +40 -0
  23. package/dist/esm/RadioGroup.js +46 -0
  24. package/dist/esm/SegmentedControl.js +104 -0
  25. package/dist/esm/Select.js +48 -0
  26. package/dist/esm/SideNav.js +36 -0
  27. package/dist/esm/Skeleton.js +29 -0
  28. package/dist/esm/Stack.js +20 -0
  29. package/dist/esm/Stepper.js +54 -0
  30. package/dist/esm/Switch.js +30 -0
  31. package/dist/esm/Tabs.js +89 -0
  32. package/dist/esm/Tag.js +42 -0
  33. package/dist/esm/TextField.js +39 -0
  34. package/dist/esm/Textarea.js +38 -0
  35. package/dist/esm/TimePicker.js +1 -1
  36. package/dist/esm/Toaster.js +124 -0
  37. package/dist/esm/Tooltip.js +80 -0
  38. package/dist/esm/index.js +33 -5
  39. package/dist/esm/internal.js +5 -0
  40. package/dist/esm/locale.js +12 -0
  41. package/dist/esm/responsive.js +50 -0
  42. package/dist/index.d.ts +109 -10
  43. package/dist/styles.css +107 -0
  44. package/package.json +1 -1
  45. package/dist/esm/extra.js +0 -412
  46. package/dist/esm/feedback.js +0 -220
  47. package/dist/esm/forms.js +0 -212
  48. package/dist/esm/layout.js +0 -183
  49. package/dist/esm/layout2.js +0 -138
  50. /package/dist/esm/{overlay.js → useModal.js} +0 -0
package/README.md CHANGED
@@ -63,9 +63,9 @@ export default function Root() {
63
63
  | `dist/styles.css` | Component CSS (no font import). |
64
64
  | `dist/index.d.ts` | Types for every component and helper, generated from the TypeScript sources (one file). |
65
65
 
66
- ## Components (43)
66
+ ## Components (49)
67
67
 
68
- Actions: Button, IconButton, Menu, DropdownMenu, Tag · Forms: TextField, Textarea, Select, RadioGroup, Checkbox, Switch, Combobox, FileUpload (+ `formatBytes`) · Dates & times: DatePicker, DateRangePicker, Calendar, TimePicker (+ `formatDate`, `parseDate`, `parseTime`) · Feedback: Alert, Toaster/`toast()`, Tooltip, StatusPill, Badge, Progress, Skeleton, EmptyState · Overlays: Dialog, Drawer, Popover · Data: DataTable, Stat · Layout: AppShell, Container, Stack, Grid, Accordion, Pagination, Card, Tabs, SideNav, Breadcrumb, Avatar, Surface, Icon · Theme: ColorSchemeToggle, ColorSchemeScript, `useColorScheme`, ThemeStyle/`createTheme` · Hooks: `useBreakpoint`, `useResponsive`, `breakpoints`, `useAuraLocale`.
68
+ Actions: Button, IconButton, Menu, DropdownMenu, Tag · Forms: TextField, Textarea, NumberField, Select, RadioGroup, Checkbox, Switch, SegmentedControl, Combobox (one value, or `multiple`), FileUpload (+ `formatBytes`) · Dates & times: DatePicker, DateRangePicker, Calendar, TimePicker (+ `formatDate`, `parseDate`, `parseTime`) · Feedback: Alert, Toaster/`toast()`, Tooltip, StatusPill, Badge, Progress, Skeleton, EmptyState · Overlays: Dialog, Drawer, Popover · Data: DataTable, Stat · Layout: AppShell, Container, Stack, Grid, Accordion, Pagination, Card, Tabs, Stepper, SideNav, Breadcrumb, Avatar, Surface, Icon · Theme: ColorSchemeToggle, ColorSchemeScript, `useColorScheme`, ThemeStyle/`createTheme` · Hooks: `useBreakpoint`, `useResponsive`, `breakpoints`, `useAuraLocale`.
69
69
 
70
70
  ## Light and dark
71
71
 
@@ -113,7 +113,7 @@ npm run test:pilots # builds the pilots + 4 brand themes, then 37 behaviour/axe
113
113
 
114
114
  ## Source
115
115
 
116
- `src/` is TypeScript (strict) and JSX, formatted with Prettier (`npm run format`). Public prop types live in `src/types.ts` with their docs; each component imports its props from there and `forwardRef`s with them, so the published `dist/index.d.ts` is generated from the code and can't drift from it. The build compiles JSX to `React.createElement` (classic runtime), so the `window.Aura` script needs only `window.React`.
116
+ `src/` is TypeScript (strict) and JSX, formatted with Prettier (`npm run format`), **one file per component** (`Badge.tsx`, `Tooltip.tsx`, …) so a project that imports one component gets only that component's code. Public prop types live in `src/types.ts` with their docs; each component imports its props from there and `forwardRef`s with them, so the published `dist/index.d.ts` is generated from the code and can't drift from it. The build compiles JSX to `React.createElement` (classic runtime), so the `window.Aura` script needs only `window.React`.
117
117
 
118
118
  ## Pilots
119
119