@uniformdev/design-system 20.24.1-alpha.0 → 20.25.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/dist/esm/index.js CHANGED
@@ -7067,6 +7067,8 @@ var trigger = css50`
7067
7067
  margin: 2px 0;
7068
7068
  `;
7069
7069
  var popover = css50`
7070
+ border-radius: var(--rounded-sm);
7071
+ box-shadow: var(--elevation-100);
7070
7072
  padding: var(--spacing-md);
7071
7073
  max-width: unset;
7072
7074
  container-type: inline-size;
@@ -7266,6 +7268,7 @@ var DateTimePicker = ({
7266
7268
  offset = 8,
7267
7269
  testId = "datetime-picker",
7268
7270
  placement = "bottom-start",
7271
+ portal = false,
7269
7272
  ...props
7270
7273
  }) => {
7271
7274
  const popover2 = usePopoverStore({ placement });
@@ -7374,6 +7377,7 @@ var DateTimePicker = ({
7374
7377
  unmountOnHide: true,
7375
7378
  "aria-label": "Pick a date",
7376
7379
  css: [Popover, popover],
7380
+ portal,
7377
7381
  children: [
7378
7382
  /* @__PURE__ */ jsxs40("div", { css: popoverInnerContent, children: [
7379
7383
  /* @__PURE__ */ jsx63("div", { css: calendarSection, children: /* @__PURE__ */ jsx63(
package/dist/index.d.mts CHANGED
@@ -1634,6 +1634,8 @@ type DateTimePickerProps = {
1634
1634
  * @default 8
1635
1635
  */
1636
1636
  offset?: number;
1637
+ /** (optional) sets whether to render the popover in a portal */
1638
+ portal?: boolean;
1637
1639
  };
1638
1640
  /**
1639
1641
  * Use this context for slots within the date time picker
@@ -1653,7 +1655,7 @@ declare function useDateTimePickerContext(): {
1653
1655
  * Subcomponents can manipulate the value directly by using
1654
1656
  * the `useDateTimePickerContext()` hook.
1655
1657
  */
1656
- declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, offset, testId, placement, ...props }: DateTimePickerProps) => _emotion_react_jsx_runtime.JSX.Element;
1658
+ declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, offset, testId, placement, portal, ...props }: DateTimePickerProps) => _emotion_react_jsx_runtime.JSX.Element;
1657
1659
 
1658
1660
  declare function DateTimePickerSummary({ value, placeholder, }: {
1659
1661
  value: DateTimePickerValue | null | undefined;
package/dist/index.d.ts CHANGED
@@ -1634,6 +1634,8 @@ type DateTimePickerProps = {
1634
1634
  * @default 8
1635
1635
  */
1636
1636
  offset?: number;
1637
+ /** (optional) sets whether to render the popover in a portal */
1638
+ portal?: boolean;
1637
1639
  };
1638
1640
  /**
1639
1641
  * Use this context for slots within the date time picker
@@ -1653,7 +1655,7 @@ declare function useDateTimePickerContext(): {
1653
1655
  * Subcomponents can manipulate the value directly by using
1654
1656
  * the `useDateTimePickerContext()` hook.
1655
1657
  */
1656
- declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, offset, testId, placement, ...props }: DateTimePickerProps) => _emotion_react_jsx_runtime.JSX.Element;
1658
+ declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, offset, testId, placement, portal, ...props }: DateTimePickerProps) => _emotion_react_jsx_runtime.JSX.Element;
1657
1659
 
1658
1660
  declare function DateTimePickerSummary({ value, placeholder, }: {
1659
1661
  value: DateTimePickerValue | null | undefined;
package/dist/index.js CHANGED
@@ -8856,6 +8856,8 @@ var trigger = import_react72.css`
8856
8856
  margin: 2px 0;
8857
8857
  `;
8858
8858
  var popover = import_react72.css`
8859
+ border-radius: var(--rounded-sm);
8860
+ box-shadow: var(--elevation-100);
8859
8861
  padding: var(--spacing-md);
8860
8862
  max-width: unset;
8861
8863
  container-type: inline-size;
@@ -9050,6 +9052,7 @@ var DateTimePicker = ({
9050
9052
  offset = 8,
9051
9053
  testId = "datetime-picker",
9052
9054
  placement = "bottom-start",
9055
+ portal = false,
9053
9056
  ...props
9054
9057
  }) => {
9055
9058
  const popover2 = (0, import_react73.usePopoverStore)({ placement });
@@ -9158,6 +9161,7 @@ var DateTimePicker = ({
9158
9161
  unmountOnHide: true,
9159
9162
  "aria-label": "Pick a date",
9160
9163
  css: [Popover, popover],
9164
+ portal,
9161
9165
  children: [
9162
9166
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { css: popoverInnerContent, children: [
9163
9167
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { css: calendarSection, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "20.24.1-alpha.0+9e8dbc01e8",
3
+ "version": "20.25.0",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "exports": {
@@ -38,8 +38,8 @@
38
38
  "@storybook/theming": "^8.3.3",
39
39
  "@types/react": "18.3.11",
40
40
  "@types/react-dom": "18.3.1",
41
- "@uniformdev/canvas": "^20.24.1-alpha.0+9e8dbc01e8",
42
- "@uniformdev/richtext": "^20.24.1-alpha.0+9e8dbc01e8",
41
+ "@uniformdev/canvas": "^20.25.0",
42
+ "@uniformdev/richtext": "^20.25.0",
43
43
  "@vitest/coverage-v8": "^3.1.2",
44
44
  "autoprefixer": "10.4.21",
45
45
  "hygen": "6.2.11",
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "9e8dbc01e870c404b63c19326477dbb3910ec14a"
94
+ "gitHead": "3fe795ce670ac4b96982a833d234059ad5a47995"
95
95
  }