7onic 0.1.6 → 0.1.7

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 (2) hide show
  1. package/dist/index.js +12 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8857,9 +8857,8 @@ const PaginationRoot = React.forwardRef<HTMLElement, PaginationProps>(
8857
8857
  color = 'default',
8858
8858
  radius = 'md',
8859
8859
  disabled = false,
8860
- // Pre-declared API; conditional auto-rendering is tracked in COMPONENT-IMPROVEMENTS.md.
8861
- withControls: _withControls = true,
8862
- withEdges: _withEdges = false,
8860
+ withControls = true,
8861
+ withEdges = false,
8863
8862
  loop = false,
8864
8863
  children,
8865
8864
  ...props
@@ -8902,7 +8901,15 @@ const PaginationRoot = React.forwardRef<HTMLElement, PaginationProps>(
8902
8901
  className={cn('', className)}
8903
8902
  {...props}
8904
8903
  >
8905
- {children}
8904
+ {children ?? (
8905
+ <PaginationContent>
8906
+ {withEdges && <PaginationItem><PaginationFirst /></PaginationItem>}
8907
+ {withControls && <PaginationItem><PaginationPrevious /></PaginationItem>}
8908
+ <PaginationItems />
8909
+ {withControls && <PaginationItem><PaginationNext /></PaginationItem>}
8910
+ {withEdges && <PaginationItem><PaginationLast /></PaginationItem>}
8911
+ </PaginationContent>
8912
+ )}
8906
8913
  </nav>
8907
8914
  </PaginationContext.Provider>
8908
8915
  )
@@ -14479,7 +14486,7 @@ function showSetupHints(names) {
14479
14486
 
14480
14487
  // cli/src/index.ts
14481
14488
  var import_picocolors4 = __toESM(require_picocolors());
14482
- var VERSION = "0.1.6";
14489
+ var VERSION = "0.1.7";
14483
14490
  var HELP = `
14484
14491
  ${import_picocolors4.default.bold("7onic")} \u2014 Add 7onic design system components to your project
14485
14492
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "7onic",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "CLI for adding 7onic design system components to your project",
5
5
  "bin": {
6
6
  "7onic": "./dist/index.js"