@ostack.tech/ui 1.3.0-beta.1 → 1.3.0-beta.2
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/ostack-ui.js +50 -17
- package/dist/ostack-ui.js.map +1 -1
- package/package.json +2 -2
- package/types/components/Alert/Alert.d.ts +1 -1
- package/types/components/AlertDialog/AlertDialog.d.ts +0 -1
- package/types/components/AlertDialog/AlertDialogBody.d.ts +2 -2
- package/types/components/AlertDialog/AlertDialogFooter.d.ts +2 -2
- package/types/components/Box/Box.d.ts +1 -1
- package/types/components/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/types/components/CommandMenu/CommandMenuItem.d.ts +6 -0
- package/types/components/CommandMenu/cmdk/index.d.ts +2 -2
- package/types/components/Container/Container.d.ts +1 -1
- package/types/components/DataTable/DataTable.d.ts +13 -6
- package/types/components/DataTable/DataTableContent.d.ts +1 -1
- package/types/components/DataTable/DataTableRowsPerPage.d.ts +1 -5
- package/types/components/DateInput/DateInput.d.ts +4 -4
- package/types/components/DateRangeInput/DateRangeInput.d.ts +1 -1
- package/types/components/DropdownMenu/DropdownMenuItem.d.ts +6 -0
- package/types/components/Form/Form.d.ts +12 -3
- package/types/components/Form/FormError.d.ts +3 -2
- package/types/components/Keyboard/Keyboard.d.ts +1 -5
- package/types/components/Link/Link.d.ts +1 -1
- package/types/components/NumericInput/NumericInput.d.ts +4 -4
- package/types/components/Output/Output.d.ts +12 -0
- package/types/components/Select/Select.d.ts +1 -1
- package/types/components/Separator/Separator.d.ts +1 -1
- package/types/components/Table/TableCell.d.ts +2 -2
- package/types/components/Text/Text.d.ts +2 -6
- package/types/components/Tooltip/Tooltip.d.ts +1 -1
- package/types/providers/AlertDialogProvider/AlertDialogProviderContext.d.ts +1 -1
package/dist/ostack-ui.js
CHANGED
|
@@ -58,7 +58,6 @@ import fromExponential from "from-exponential";
|
|
|
58
58
|
* AlertDialogAction,
|
|
59
59
|
* AlertDialogBody,
|
|
60
60
|
* AlertDialogCancel,
|
|
61
|
-
* AlertDialogClose,
|
|
62
61
|
* AlertDialogContent,
|
|
63
62
|
* AlertDialogDescription,
|
|
64
63
|
* AlertDialogFooter,
|
|
@@ -4220,7 +4219,7 @@ function Spinner(t0) {
|
|
|
4220
4219
|
* ```tsx
|
|
4221
4220
|
* import { Button, Tooltip } from "@ostack.tech/ui";
|
|
4222
4221
|
*
|
|
4223
|
-
* function BookmarkButton() {
|
|
4222
|
+
* function BookmarkButton() {
|
|
4224
4223
|
* return (
|
|
4225
4224
|
* <Tooltip content="Save for later…">
|
|
4226
4225
|
* <Button>Bookmark</Button>
|
|
@@ -4883,7 +4882,16 @@ function DialogTrigger(props) {
|
|
|
4883
4882
|
}
|
|
4884
4883
|
// src/components/AlertDialog/AlertDialogBody.tsx
|
|
4885
4884
|
/** Body section of the alert dialog. */
|
|
4886
|
-
|
|
4885
|
+
function AlertDialogBody(props) {
|
|
4886
|
+
const $ = c(2);
|
|
4887
|
+
let t0;
|
|
4888
|
+
if ($[0] !== props) {
|
|
4889
|
+
t0 = /* @__PURE__ */ jsx(DialogBody, { ...props });
|
|
4890
|
+
$[0] = props;
|
|
4891
|
+
$[1] = t0;
|
|
4892
|
+
} else t0 = $[1];
|
|
4893
|
+
return t0;
|
|
4894
|
+
}
|
|
4887
4895
|
// src/components/AlertDialog/AlertDialogCancel.tsx
|
|
4888
4896
|
/**
|
|
4889
4897
|
* Button which closes the alert dialog by cancelling the action. These buttons should be
|
|
@@ -5076,7 +5084,16 @@ function AlertDialogDescription(t0) {
|
|
|
5076
5084
|
}
|
|
5077
5085
|
// src/components/AlertDialog/AlertDialogFooter.tsx
|
|
5078
5086
|
/** Footer section of the alert dialog. */
|
|
5079
|
-
|
|
5087
|
+
function AlertDialogFooter(props) {
|
|
5088
|
+
const $ = c(2);
|
|
5089
|
+
let t0;
|
|
5090
|
+
if ($[0] !== props) {
|
|
5091
|
+
t0 = /* @__PURE__ */ jsx(DialogFooter, { ...props });
|
|
5092
|
+
$[0] = props;
|
|
5093
|
+
$[1] = t0;
|
|
5094
|
+
} else t0 = $[1];
|
|
5095
|
+
return t0;
|
|
5096
|
+
}
|
|
5080
5097
|
// src/components/AlertDialog/AlertDialogHeader.tsx
|
|
5081
5098
|
/** Header section of the alert dialog. */
|
|
5082
5099
|
function AlertDialogHeader(t0) {
|
|
@@ -7100,7 +7117,7 @@ function _temp$44(v) {
|
|
|
7100
7117
|
/**
|
|
7101
7118
|
* Basic layout component. Built on top of the browser's [`<div>`
|
|
7102
7119
|
* element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/div) with access to
|
|
7103
|
-
* margin, padding,
|
|
7120
|
+
* margin, padding, and sizing properties.
|
|
7104
7121
|
*
|
|
7105
7122
|
* Example usage:
|
|
7106
7123
|
*
|
|
@@ -7448,7 +7465,7 @@ var SEVERITY_ICON = {
|
|
|
7448
7465
|
* ```tsx
|
|
7449
7466
|
* import { Alert, AlertTitle } from "@ostack.tech/ui";
|
|
7450
7467
|
*
|
|
7451
|
-
* function TermsAndConditionsNotice {
|
|
7468
|
+
* function TermsAndConditionsNotice() {
|
|
7452
7469
|
* return (
|
|
7453
7470
|
* <Alert>
|
|
7454
7471
|
* <AlertTitle>Notice</AlertTitle>
|
|
@@ -14704,7 +14721,14 @@ var DEFAULT_LIMIT = 10;
|
|
|
14704
14721
|
* Example usage:
|
|
14705
14722
|
*
|
|
14706
14723
|
* ```tsx
|
|
14707
|
-
* import {
|
|
14724
|
+
* import {
|
|
14725
|
+
* DataTable,
|
|
14726
|
+
* DataTableColumn,
|
|
14727
|
+
* DataTableColumns,
|
|
14728
|
+
* DataTableContent,
|
|
14729
|
+
* DataTablePagination,
|
|
14730
|
+
* DataTableRowsPerPage,
|
|
14731
|
+
* } from "@ostack.tech/ui";
|
|
14708
14732
|
*
|
|
14709
14733
|
* function InventoryTable() {
|
|
14710
14734
|
* return (
|
|
@@ -14722,11 +14746,11 @@ var DEFAULT_LIMIT = 10;
|
|
|
14722
14746
|
* ]}
|
|
14723
14747
|
* >
|
|
14724
14748
|
* <DataTableColumns>
|
|
14725
|
-
* <DataTableColumn
|
|
14726
|
-
* <DataTableColumn
|
|
14727
|
-
* <DataTableColumn
|
|
14728
|
-
* <DataTableColumn
|
|
14729
|
-
* <DataTableColumn
|
|
14749
|
+
* <DataTableColumn id="sku" label="SKU" header />
|
|
14750
|
+
* <DataTableColumn id="product" label="Product" />
|
|
14751
|
+
* <DataTableColumn id="category" label="Category" />
|
|
14752
|
+
* <DataTableColumn id="stock" label="Stock" />
|
|
14753
|
+
* <DataTableColumn id="condition" label="Condition" />
|
|
14730
14754
|
* </DataTableColumns>
|
|
14731
14755
|
* <DataTableContent caption="Inventory" />
|
|
14732
14756
|
* <DataTableRowsPerPage />
|
|
@@ -29519,8 +29543,8 @@ function FieldGroupTitle(t0) {
|
|
|
29519
29543
|
}
|
|
29520
29544
|
// src/components/Form/Form.tsx
|
|
29521
29545
|
/**
|
|
29522
|
-
* The `Form` provides a wrapper over the browser's native validation capabilities and can
|
|
29523
|
-
* to declaratively build simple forms.
|
|
29546
|
+
* The `Form` component provides a wrapper over the browser's native validation capabilities and can
|
|
29547
|
+
* be used to declaratively build simple forms.
|
|
29524
29548
|
*
|
|
29525
29549
|
* It composes the following subcomponents:
|
|
29526
29550
|
*
|
|
@@ -29536,7 +29560,16 @@ function FieldGroupTitle(t0) {
|
|
|
29536
29560
|
* Example usage:
|
|
29537
29561
|
*
|
|
29538
29562
|
* ```tsx
|
|
29539
|
-
* import {
|
|
29563
|
+
* import {
|
|
29564
|
+
* Button,
|
|
29565
|
+
* Field,
|
|
29566
|
+
* Form,
|
|
29567
|
+
* FormError,
|
|
29568
|
+
* FormSubmit,
|
|
29569
|
+
* Input,
|
|
29570
|
+
* Label,
|
|
29571
|
+
* Stack,
|
|
29572
|
+
* } from "@ostack.tech/ui";
|
|
29540
29573
|
*
|
|
29541
29574
|
* function SignInForm() {
|
|
29542
29575
|
* return (
|
|
@@ -32113,7 +32146,7 @@ function RadioGroup(t0) {
|
|
|
32113
32146
|
// src/components/Separator/Separator.tsx
|
|
32114
32147
|
/**
|
|
32115
32148
|
* Component that visually or semantically separates content. Built on top of the [Radix Separator
|
|
32116
|
-
* primitive](https://www.radix-ui.com/primitives/docs/components/separator)
|
|
32149
|
+
* primitive](https://www.radix-ui.com/primitives/docs/components/separator).
|
|
32117
32150
|
*
|
|
32118
32151
|
* Example usage:
|
|
32119
32152
|
*
|
|
@@ -34492,7 +34525,7 @@ function Tabs(t0) {
|
|
|
34492
34525
|
// src/components/Text/Text.tsx
|
|
34493
34526
|
/**
|
|
34494
34527
|
* Component used to render text. By default, it renders as a [`<span>`
|
|
34495
|
-
* element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/
|
|
34528
|
+
* element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/span). Use the `as`
|
|
34496
34529
|
* property to render as an `<em>`, `<p>`, `<strong>`, or other text elements.
|
|
34497
34530
|
*
|
|
34498
34531
|
* Example usage:
|