@uniformdev/design-system 20.55.2-alpha.2 → 20.55.2-alpha.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.
- package/dist/esm/index.js +2 -27
- package/dist/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +2 -27
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -7951,10 +7951,6 @@ var datePart = css54`
|
|
|
7951
7951
|
overflow: hidden;
|
|
7952
7952
|
white-space: nowrap;
|
|
7953
7953
|
`;
|
|
7954
|
-
var compactInput = css54`
|
|
7955
|
-
/* matches the rendered height of ParameterInput (padding + line-height + border) */
|
|
7956
|
-
min-height: calc(var(--spacing-sm) * 2 + var(--fs-sm) * 1.5 + 2px);
|
|
7957
|
-
`;
|
|
7958
7954
|
var datePartButton = css54`
|
|
7959
7955
|
// this allows the button to be as wide as the text
|
|
7960
7956
|
min-width: 0;
|
|
@@ -8123,7 +8119,6 @@ var DateTimePicker = ({
|
|
|
8123
8119
|
testId = "datetime-picker",
|
|
8124
8120
|
placement = "bottom-start",
|
|
8125
8121
|
portal = false,
|
|
8126
|
-
compact = false,
|
|
8127
8122
|
...props
|
|
8128
8123
|
}) => {
|
|
8129
8124
|
const popover2 = usePopoverStore({ placement });
|
|
@@ -8195,12 +8190,7 @@ var DateTimePicker = ({
|
|
|
8195
8190
|
/* @__PURE__ */ jsxs43(
|
|
8196
8191
|
"div",
|
|
8197
8192
|
{
|
|
8198
|
-
css: [
|
|
8199
|
-
input("nowrap"),
|
|
8200
|
-
input2,
|
|
8201
|
-
compact && compactInput,
|
|
8202
|
-
errorMessage ? inputError : null
|
|
8203
|
-
],
|
|
8193
|
+
css: [input("nowrap"), input2, errorMessage ? inputError : null],
|
|
8204
8194
|
"data-disabled": disabled2,
|
|
8205
8195
|
"data-focus": visible,
|
|
8206
8196
|
children: [
|
|
@@ -8225,17 +8215,7 @@ var DateTimePicker = ({
|
|
|
8225
8215
|
children: "clear"
|
|
8226
8216
|
}
|
|
8227
8217
|
),
|
|
8228
|
-
/* @__PURE__ */ jsx66(
|
|
8229
|
-
Button,
|
|
8230
|
-
{
|
|
8231
|
-
css: trigger,
|
|
8232
|
-
buttonType: "ghost",
|
|
8233
|
-
size: compact ? "sm" : "md",
|
|
8234
|
-
disabled: disabled2,
|
|
8235
|
-
onClick: popover2.show,
|
|
8236
|
-
children: /* @__PURE__ */ jsx66(Icon, { icon: triggerIcon, iconColor: "gray", size: "1rem" })
|
|
8237
|
-
}
|
|
8238
|
-
)
|
|
8218
|
+
/* @__PURE__ */ jsx66(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ jsx66(Icon, { icon: triggerIcon, iconColor: "gray" }) })
|
|
8239
8219
|
]
|
|
8240
8220
|
}
|
|
8241
8221
|
),
|
|
@@ -13374,11 +13354,6 @@ var input3 = css97`
|
|
|
13374
13354
|
cursor: not-allowed;
|
|
13375
13355
|
color: var(--gray-400);
|
|
13376
13356
|
}
|
|
13377
|
-
|
|
13378
|
-
&::-webkit-calendar-picker-indicator {
|
|
13379
|
-
color: var(--gray-500);
|
|
13380
|
-
opacity: var(--opacity-50);
|
|
13381
|
-
}
|
|
13382
13357
|
`;
|
|
13383
13358
|
var selectInput = css97`
|
|
13384
13359
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
package/dist/index.d.mts
CHANGED
|
@@ -1803,8 +1803,6 @@ type DateTimePickerProps = {
|
|
|
1803
1803
|
offset?: number;
|
|
1804
1804
|
/** (optional) sets whether to render the popover in a portal */
|
|
1805
1805
|
portal?: boolean;
|
|
1806
|
-
/** (optional) reduces input height to match compact parameter inputs */
|
|
1807
|
-
compact?: boolean;
|
|
1808
1806
|
};
|
|
1809
1807
|
/**
|
|
1810
1808
|
* Use this context for slots within the date time picker
|
|
@@ -1824,7 +1822,7 @@ declare function useDateTimePickerContext(): {
|
|
|
1824
1822
|
* Subcomponents can manipulate the value directly by using
|
|
1825
1823
|
* the `useDateTimePickerContext()` hook.
|
|
1826
1824
|
*/
|
|
1827
|
-
declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, offset, testId, placement, portal,
|
|
1825
|
+
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;
|
|
1828
1826
|
|
|
1829
1827
|
declare function DateTimePickerSummary({ value, placeholder, }: {
|
|
1830
1828
|
value: DateTimePickerValue | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1803,8 +1803,6 @@ type DateTimePickerProps = {
|
|
|
1803
1803
|
offset?: number;
|
|
1804
1804
|
/** (optional) sets whether to render the popover in a portal */
|
|
1805
1805
|
portal?: boolean;
|
|
1806
|
-
/** (optional) reduces input height to match compact parameter inputs */
|
|
1807
|
-
compact?: boolean;
|
|
1808
1806
|
};
|
|
1809
1807
|
/**
|
|
1810
1808
|
* Use this context for slots within the date time picker
|
|
@@ -1824,7 +1822,7 @@ declare function useDateTimePickerContext(): {
|
|
|
1824
1822
|
* Subcomponents can manipulate the value directly by using
|
|
1825
1823
|
* the `useDateTimePickerContext()` hook.
|
|
1826
1824
|
*/
|
|
1827
|
-
declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, offset, testId, placement, portal,
|
|
1825
|
+
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;
|
|
1828
1826
|
|
|
1829
1827
|
declare function DateTimePickerSummary({ value, placeholder, }: {
|
|
1830
1828
|
value: DateTimePickerValue | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -9786,10 +9786,6 @@ var datePart = import_react81.css`
|
|
|
9786
9786
|
overflow: hidden;
|
|
9787
9787
|
white-space: nowrap;
|
|
9788
9788
|
`;
|
|
9789
|
-
var compactInput = import_react81.css`
|
|
9790
|
-
/* matches the rendered height of ParameterInput (padding + line-height + border) */
|
|
9791
|
-
min-height: calc(var(--spacing-sm) * 2 + var(--fs-sm) * 1.5 + 2px);
|
|
9792
|
-
`;
|
|
9793
9789
|
var datePartButton = import_react81.css`
|
|
9794
9790
|
// this allows the button to be as wide as the text
|
|
9795
9791
|
min-width: 0;
|
|
@@ -9953,7 +9949,6 @@ var DateTimePicker = ({
|
|
|
9953
9949
|
testId = "datetime-picker",
|
|
9954
9950
|
placement = "bottom-start",
|
|
9955
9951
|
portal = false,
|
|
9956
|
-
compact = false,
|
|
9957
9952
|
...props
|
|
9958
9953
|
}) => {
|
|
9959
9954
|
const popover2 = (0, import_react82.usePopoverStore)({ placement });
|
|
@@ -10025,12 +10020,7 @@ var DateTimePicker = ({
|
|
|
10025
10020
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
10026
10021
|
"div",
|
|
10027
10022
|
{
|
|
10028
|
-
css: [
|
|
10029
|
-
input("nowrap"),
|
|
10030
|
-
input2,
|
|
10031
|
-
compact && compactInput,
|
|
10032
|
-
errorMessage ? inputError : null
|
|
10033
|
-
],
|
|
10023
|
+
css: [input("nowrap"), input2, errorMessage ? inputError : null],
|
|
10034
10024
|
"data-disabled": disabled2,
|
|
10035
10025
|
"data-focus": visible,
|
|
10036
10026
|
children: [
|
|
@@ -10055,17 +10045,7 @@ var DateTimePicker = ({
|
|
|
10055
10045
|
children: "clear"
|
|
10056
10046
|
}
|
|
10057
10047
|
),
|
|
10058
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
10059
|
-
Button,
|
|
10060
|
-
{
|
|
10061
|
-
css: trigger,
|
|
10062
|
-
buttonType: "ghost",
|
|
10063
|
-
size: compact ? "sm" : "md",
|
|
10064
|
-
disabled: disabled2,
|
|
10065
|
-
onClick: popover2.show,
|
|
10066
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: triggerIcon, iconColor: "gray", size: "1rem" })
|
|
10067
|
-
}
|
|
10068
|
-
)
|
|
10048
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: triggerIcon, iconColor: "gray" }) })
|
|
10069
10049
|
]
|
|
10070
10050
|
}
|
|
10071
10051
|
),
|
|
@@ -15338,11 +15318,6 @@ var input3 = import_react151.css`
|
|
|
15338
15318
|
cursor: not-allowed;
|
|
15339
15319
|
color: var(--gray-400);
|
|
15340
15320
|
}
|
|
15341
|
-
|
|
15342
|
-
&::-webkit-calendar-picker-indicator {
|
|
15343
|
-
color: var(--gray-500);
|
|
15344
|
-
opacity: var(--opacity-50);
|
|
15345
|
-
}
|
|
15346
15321
|
`;
|
|
15347
15322
|
var selectInput = import_react151.css`
|
|
15348
15323
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.55.2-alpha.
|
|
3
|
+
"version": "20.55.2-alpha.7+696a3fee53",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"exports": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@storybook/react-vite": "10.1.0",
|
|
36
36
|
"@types/react": "19.2.2",
|
|
37
37
|
"@types/react-dom": "19.2.2",
|
|
38
|
-
"@uniformdev/canvas": "^20.55.2-alpha.
|
|
39
|
-
"@uniformdev/richtext": "^20.55.2-alpha.
|
|
38
|
+
"@uniformdev/canvas": "^20.55.2-alpha.7+696a3fee53",
|
|
39
|
+
"@uniformdev/richtext": "^20.55.2-alpha.7+696a3fee53",
|
|
40
40
|
"autoprefixer": "10.4.21",
|
|
41
41
|
"hygen": "6.2.11",
|
|
42
42
|
"jsdom": "20.0.3",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "696a3fee53d2c4667de4f6e98201b11cebe042da"
|
|
92
92
|
}
|