@ultraviolet/ui 3.20.3 → 3.21.1
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/README.md +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/asyncToGenerator.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/defineProperty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/extends.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectSpread2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutProperties.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/toPrimitive.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/toPropertyKey.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.138.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/typeof.js +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Avatar/index.js +2 -2
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/BarChart/index.js +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +2 -2
- package/dist/components/Breadcrumbs/index.d.ts +2 -26
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +3 -1
- package/dist/components/Carousel/Item.js +1 -1
- package/dist/components/Carousel/index.d.ts +2 -8
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/SingleCheckbox.js +1 -1
- package/dist/components/CheckboxGroup/index.d.ts +1 -23
- package/dist/components/CheckboxGroup/index.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/index.js +1 -1
- package/dist/components/Chip/ChipIcon.js +1 -1
- package/dist/components/Chip/index.d.ts +2 -8
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +1 -1
- package/dist/components/DateInput/components/Popup.js +1 -1
- package/dist/components/DateInput/index.js +3 -2
- package/dist/components/Dialog/index.d.ts +13 -99
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Drawer/index.d.ts +3 -10
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/Expandable/AnimatedExpandable.js +1 -1
- package/dist/components/Expandable/NonAnimatedExpandable.js +1 -1
- package/dist/components/ExpandableCard/index.d.ts +2 -4
- package/dist/components/ExpandableCard/index.d.ts.map +1 -1
- package/dist/components/ExpandableCard/index.js +1 -1
- package/dist/components/FileInput/components/Button.js +3 -4
- package/dist/components/FileInput/components/List.js +1 -1
- package/dist/components/FileInput/helpers.js +1 -1
- package/dist/components/FileInput/index.d.ts +11 -10
- package/dist/components/FileInput/index.d.ts.map +1 -1
- package/dist/components/FileInput/index.js +4 -4
- package/dist/components/GlobalAlert/index.d.ts +2 -63
- package/dist/components/GlobalAlert/index.d.ts.map +1 -1
- package/dist/components/GlobalAlert/index.js +1 -1
- package/dist/components/InfiniteScroll/index.js +1 -1
- package/dist/components/Key/styles.css.d.ts.map +1 -1
- package/dist/components/LineChart/CustomLegend.js +1 -1
- package/dist/components/LineChart/index.js +1 -1
- package/dist/components/List/Cell.js +2 -2
- package/dist/components/List/ExpandButtonCell.js +1 -1
- package/dist/components/List/HeaderRow.js +1 -1
- package/dist/components/List/ListContext.js +3 -3
- package/dist/components/List/Row.js +1 -1
- package/dist/components/List/SelectRowCell.js +1 -1
- package/dist/components/List/SkeletonRows.js +1 -1
- package/dist/components/List/TableContainer.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/index.d.ts +2 -10
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Modal/components/Dialog.js +1 -1
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/PieChart/index.js +2 -2
- package/dist/components/Popup/index.js +1 -1
- package/dist/components/RadioGroup/SingleRadio.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Row/index.d.ts +1 -1
- package/dist/components/Row/index.d.ts.map +1 -1
- package/dist/components/Row/index.js +1 -1
- package/dist/components/SelectInput/SelectInputProvider.d.ts +1 -0
- package/dist/components/SelectInput/SelectInputProvider.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +4 -5
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Content.js +3 -3
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.js +3 -2
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/SearchBar.js +10 -5
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/SelectAll.js +14 -20
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts +1 -1
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.js +4 -4
- package/dist/components/SelectInput/reducerFunctions.d.ts +3 -8
- package/dist/components/SelectInput/reducerFunctions.d.ts.map +1 -1
- package/dist/components/SelectInput/reducerFunctions.js +4 -14
- package/dist/components/SelectInput/styles.css.d.ts +1 -1
- package/dist/components/SelectInput/styles.css.js +6 -6
- package/dist/components/SelectInput/types.d.ts +0 -1
- package/dist/components/SelectInput/types.d.ts.map +1 -1
- package/dist/components/SelectableCard/MultiStateInput.js +2 -2
- package/dist/components/SelectableCard/SelectableCard.js +1 -1
- package/dist/components/SelectableCardGroup/index.js +1 -1
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +2 -2
- package/dist/components/Skeleton/index.d.ts +16 -21
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +1 -1
- package/dist/components/Slider/components/Options.js +1 -1
- package/dist/components/Slider/components/SingleSlider.js +2 -2
- package/dist/components/Snippet/index.d.ts.map +1 -1
- package/dist/components/Snippet/index.js +2 -3
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +3 -4
- package/dist/components/Status/styles.css.d.ts.map +1 -1
- package/dist/components/StepList/Item.js +1 -1
- package/dist/components/StepList/index.d.ts +2 -14
- package/dist/components/StepList/index.d.ts.map +1 -1
- package/dist/components/Stepper/Bullet.js +1 -1
- package/dist/components/Stepper/Step.js +1 -1
- package/dist/components/Stepper/index.d.ts +2 -13
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +2 -2
- package/dist/components/SwitchButton/FocusOverlay.js +1 -1
- package/dist/components/SwitchButton/index.d.ts +2 -11
- package/dist/components/SwitchButton/index.d.ts.map +1 -1
- package/dist/components/SwitchButton/index.js +1 -1
- package/dist/components/Table/Cell.js +2 -2
- package/dist/components/Table/Row.js +1 -1
- package/dist/components/Table/TableContainer.js +1 -1
- package/dist/components/Table/TableContext.js +4 -7
- package/dist/components/Table/index.d.ts +10 -48
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/Tab.js +4 -5
- package/dist/components/Tabs/TabMenu.js +3 -4
- package/dist/components/Tabs/TabMenuItem.js +4 -5
- package/dist/components/Tabs/index.d.ts +7 -41
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +4 -5
- package/dist/components/Tabs/styles.css.d.ts.map +1 -1
- package/dist/components/TagInput/index.js +2 -2
- package/dist/components/TagList/index.js +2 -2
- package/dist/components/Text/constants.d.ts +2 -0
- package/dist/components/Text/constants.d.ts.map +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Text/style.css.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +26 -31
- package/dist/components/TextArea/styles.css.d.ts +0 -3
- package/dist/components/TextArea/styles.css.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +2 -2
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/components/Button.js +3 -4
- package/dist/components/Toaster/components/Link.js +3 -3
- package/dist/components/Toaster/index.d.ts +4 -2
- package/dist/components/Toaster/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.js +1 -1
- package/dist/components/TreeMapChart/index.js +2 -2
- package/dist/components/UnitInput/index.js +1 -1
- package/dist/components/index.js +15 -15
- package/dist/components/styles.js +90 -90
- package/dist/composition.js +30 -30
- package/dist/compositions/Conversation/index.d.ts +8 -32
- package/dist/compositions/Conversation/index.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Item.js +1 -1
- package/dist/compositions/EstimateCost/Components/LineThrough.js +3 -4
- package/dist/compositions/EstimateCost/Components/Unit.js +1 -1
- package/dist/compositions/EstimateCost/EstimateCostProvider.js +1 -1
- package/dist/compositions/EstimateCost/Image.js +1 -1
- package/dist/compositions/EstimateCost/index.d.ts +21 -167
- package/dist/compositions/EstimateCost/index.d.ts.map +1 -1
- package/dist/compositions/FAQ/index.js +1 -1
- package/dist/compositions/Filters/filterTypes/FilterDateRange.d.ts +9 -0
- package/dist/compositions/Filters/filterTypes/FilterDateRange.d.ts.map +1 -0
- package/dist/compositions/Filters/filterTypes/FilterDateRange.js +36 -0
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.js +2 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.d.ts +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.js +3 -2
- package/dist/compositions/Filters/filterTypes/FilterSlider.js +1 -1
- package/dist/compositions/Filters/index.d.ts +1 -1
- package/dist/compositions/Filters/index.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/AbstractFilter.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/AbstractFilter.js +7 -3
- package/dist/compositions/Filters/parts/FiltersDrawer.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/FiltersDrawer.js +2 -4
- package/dist/compositions/Filters/parts/reducer.js +1 -1
- package/dist/compositions/Filters/parts/useFilters.js +1 -1
- package/dist/compositions/Filters/types.d.ts +24 -1
- package/dist/compositions/Filters/types.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/Row.js +1 -1
- package/dist/compositions/InfoTable/index.d.ts +13 -21
- package/dist/compositions/InfoTable/index.d.ts.map +1 -1
- package/dist/compositions/InfoTable/styles.css.js +83 -83
- package/dist/compositions/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/compositions/Navigation/NavigationProvider.js +1 -1
- package/dist/compositions/Navigation/index.d.ts +11 -59
- package/dist/compositions/Navigation/index.d.ts.map +1 -1
- package/dist/compositions/OfferList/components/SelectableCell.js +1 -1
- package/dist/compositions/OfferList/index.d.ts +5 -39
- package/dist/compositions/OfferList/index.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/styles.css.js +83 -83
- package/dist/compositions/OrderSummary/helpers.js +1 -1
- package/dist/compositions/Plans/PlanHeader.d.ts +1 -1
- package/dist/compositions/Plans/PlanHeader.d.ts.map +1 -1
- package/dist/compositions/RichTextInput/index.js +1 -1
- package/dist/compositions/SteppedListCard/index.d.ts +2 -11
- package/dist/compositions/SteppedListCard/index.d.ts.map +1 -1
- package/dist/index.js +70 -70
- package/dist/mocks/list.d.ts +1 -1
- package/dist/mocks/list.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +11 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +2 -7
- package/dist/theme/index.d.ts +27 -2
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -37,8 +37,8 @@ For the library to work properly, you need to wrap your application with the `Th
|
|
|
37
37
|
You will also need to import styles of components for them to have the correct styles.
|
|
38
38
|
|
|
39
39
|
```tsx
|
|
40
|
-
import { ThemeProvider } from '@ultraviolet/themes'
|
|
41
|
-
import { Button
|
|
40
|
+
import { ThemeProvider, consoleLightTheme as theme } from '@ultraviolet/themes'
|
|
41
|
+
import { Button } from '@ultraviolet/ui'
|
|
42
42
|
import '@ultraviolet/ui/styles'
|
|
43
43
|
|
|
44
44
|
const App = () => (
|
|
@@ -63,7 +63,7 @@ If your app still uses `Emotion`, you can combine both theme providers:
|
|
|
63
63
|
|
|
64
64
|
```js
|
|
65
65
|
import { ThemeProvider as EmotionThemeProvider } from '@emotion/react'
|
|
66
|
-
import { consoleLightTheme, ThemeProvider as UVThemeProvider } from '@ultraviolet/
|
|
66
|
+
import { consoleLightTheme, ThemeProvider as UVThemeProvider } from '@ultraviolet/themes'
|
|
67
67
|
|
|
68
68
|
const App = () => (
|
|
69
69
|
<UVThemeProvider theme={consoleLightTheme}>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/asyncToGenerator.js
|
|
4
4
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
5
5
|
try {
|
|
6
6
|
var i = n[a](c);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
import toPropertyKey, { init_toPropertyKey } from "./toPropertyKey.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
|
|
5
5
|
function _defineProperty(e, r, t) {
|
|
6
6
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7
7
|
value: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/extends.js
|
|
4
4
|
function _extends() {
|
|
5
5
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
6
6
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/objectDestructuringEmpty.js
|
|
4
4
|
function _objectDestructuringEmpty(t) {
|
|
5
5
|
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
import _defineProperty, { init_defineProperty } from "./defineProperty.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/objectSpread2.js
|
|
5
5
|
function ownKeys(e, r) {
|
|
6
6
|
var t = Object.keys(e);
|
|
7
7
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
import _objectWithoutPropertiesLoose, { init_objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/objectWithoutProperties.js
|
|
5
5
|
function _objectWithoutProperties(e, t) {
|
|
6
6
|
if (null == e) return {};
|
|
7
7
|
var o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/objectWithoutPropertiesLoose.js
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
5
5
|
if (null == r) return {};
|
|
6
6
|
var t = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
import _typeof, { init_typeof } from "./typeof.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
|
|
5
5
|
function toPrimitive(t, r) {
|
|
6
6
|
if ("object" != _typeof(t) || !t) return t;
|
|
7
7
|
var e = t[Symbol.toPrimitive];
|
|
@@ -2,7 +2,7 @@ import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
|
2
2
|
import _typeof, { init_typeof } from "./typeof.js";
|
|
3
3
|
import toPrimitive, { init_toPrimitive } from "./toPrimitive.js";
|
|
4
4
|
|
|
5
|
-
//#region \0@oxc-project+runtime@0.
|
|
5
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
|
|
6
6
|
function toPropertyKey(t) {
|
|
7
7
|
var i = toPrimitive(t, "string");
|
|
8
8
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
5
5
|
import { actionBarStyle, init_styles_css, rankActionBar } from "./styles.css.js";
|
|
6
6
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Text, init_Text } from "../Text/index.js";
|
|
5
|
-
import { DEFAULT_COLORS, TEXT_VARIANT_BY_SIZE, init_constants, sizes } from "./constants.js";
|
|
6
5
|
import { avatarStyle, init_styles_css } from "./styles.css.js";
|
|
6
|
+
import { DEFAULT_COLORS, TEXT_VARIANT_BY_SIZE, init_constants, sizes } from "./constants.js";
|
|
7
7
|
import { finalColorAvatar, finalSizeAvatar, halvedColorAvatar, init_variables_css } from "./variables.css.js";
|
|
8
8
|
import { theme } from "@ultraviolet/themes";
|
|
9
9
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -3,10 +3,10 @@ import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
|
3
3
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
4
4
|
import { Text, init_Text } from "../Text/index.js";
|
|
5
5
|
import { Button, init_Button } from "../Button/index.js";
|
|
6
|
+
import { bannerStyle, init_styles_css } from "./styles.css.js";
|
|
6
7
|
import { Link, init_Link } from "../Link/index.js";
|
|
7
8
|
import default_image_small_default, { init_default_image_small } from "./assets/default-image-small.js";
|
|
8
9
|
import default_image_default, { init_default_image } from "./assets/default-image.js";
|
|
9
|
-
import { bannerStyle, init_styles_css } from "./styles.css.js";
|
|
10
10
|
import { useMemo, useState } from "react";
|
|
11
11
|
import { useTheme } from "@ultraviolet/themes";
|
|
12
12
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { getLegendColor, init_legend } from "../../helpers/legend.js";
|
|
5
5
|
import { getNivoTheme, init_nivoTheme } from "../../helpers/nivoTheme.js";
|
|
6
6
|
import { BarChartTooltip, init_Tooltip } from "./Tooltip.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Text, init_Text } from "../../Text/index.js";
|
|
5
5
|
import { Button, init_Button } from "../../Button/index.js";
|
|
6
|
-
import { Link, init_Link } from "../../Link/index.js";
|
|
7
6
|
import { breadcrumbsStyle, init_styles_css } from "../styles.css.js";
|
|
7
|
+
import { Link, init_Link } from "../../Link/index.js";
|
|
8
8
|
import { init_styles_css as init_styles_css$1, maxWidthVar, minWidthVar } from "./styles.css.js";
|
|
9
9
|
import { useMemo } from "react";
|
|
10
10
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { Item } from './components/Item';
|
|
2
3
|
type BreadcrumbsProps = {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
className?: string;
|
|
@@ -8,32 +9,7 @@ type BreadcrumbsProps = {
|
|
|
8
9
|
export declare function Breadcrumbs({ children, className, 'data-testid': dataTestId, style }: BreadcrumbsProps): import("react").JSX.Element;
|
|
9
10
|
export declare namespace Breadcrumbs {
|
|
10
11
|
var displayName: string;
|
|
11
|
-
|
|
12
|
-
({ to, children, disabled, 'aria-current': ariaCurrent, onClick, onKeyDown, className, maxWidth, minWidth, render, }: {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time';
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
onClick?: (event: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
17
|
-
onKeyDown?: (event: import("react").KeyboardEvent<HTMLElement>) => void;
|
|
18
|
-
className?: string;
|
|
19
|
-
maxWidth?: string;
|
|
20
|
-
minWidth?: string;
|
|
21
|
-
render?: import("@ultraviolet/utils").RenderProp;
|
|
22
|
-
} & ((Without<{
|
|
23
|
-
to?: string;
|
|
24
|
-
}, {
|
|
25
|
-
render: import("@ultraviolet/utils").RenderProp;
|
|
26
|
-
}> & {
|
|
27
|
-
render: import("@ultraviolet/utils").RenderProp;
|
|
28
|
-
}) | (Without<{
|
|
29
|
-
render: import("@ultraviolet/utils").RenderProp;
|
|
30
|
-
}, {
|
|
31
|
-
to?: string;
|
|
32
|
-
}> & {
|
|
33
|
-
to?: string;
|
|
34
|
-
}))): import("react").JSX.Element;
|
|
35
|
-
displayName: string;
|
|
36
|
-
};
|
|
12
|
+
export { Item };
|
|
37
13
|
}
|
|
38
14
|
export {};
|
|
39
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAGxC,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;oCAK2B,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,gBAAgB"}
|
|
@@ -24,6 +24,7 @@ type CommonProps = {
|
|
|
24
24
|
'aria-keyshortcuts'?: string;
|
|
25
25
|
onClick?: MouseEventHandler<HTMLElement>;
|
|
26
26
|
tooltip?: string;
|
|
27
|
+
form?: ButtonHTMLAttributes<HTMLButtonElement>['form'];
|
|
27
28
|
tabIndex?: ButtonHTMLAttributes<HTMLButtonElement>['tabIndex'];
|
|
28
29
|
onMouseDown?: MouseEventHandler<HTMLElement>;
|
|
29
30
|
onMouseUp?: MouseEventHandler<HTMLElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAO,MAAM,OAAO,CAAA;AAI7G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;IACtD,SAAS,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,CAAA;IAChE,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cA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@ -14,7 +14,7 @@ var init_Button = __esmMin(() => {
|
|
|
14
14
|
init_Loader();
|
|
15
15
|
init_Tooltip();
|
|
16
16
|
init_styles_css();
|
|
17
|
-
Button = forwardRef(({ type = "button", className, "data-testid": dataTestId, "data-flip-id": dataFlipId, sentiment = "primary", variant = "filled", size = "large", disabled = false, fullWidth = false, isLoading = false, children, onClick, onMouseDown, onMouseUp, onMouseOut, onBlur, onMouseEnter, onMouseLeave, onPointerDown, onKeyDown, name, "aria-label": ariaLabel, "aria-current": ariaCurrent, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHaspopup, "aria-describedby": ariaDescribedby, "aria-disabled": ariaDisabled, "aria-pressed": ariaPressed, "aria-roledescription": ariaRoledescription, "aria-keyshortcuts": ariaKeyshortcuts, href, download, target, role, tooltip, tabIndex, autoFocus, style, render }, ref) => {
|
|
17
|
+
Button = forwardRef(({ type = "button", className, "data-testid": dataTestId, "data-flip-id": dataFlipId, sentiment = "primary", variant = "filled", size = "large", disabled = false, fullWidth = false, isLoading = false, children, onClick, onMouseDown, onMouseUp, onMouseOut, onBlur, onMouseEnter, onMouseLeave, onPointerDown, onKeyDown, name, form, "aria-label": ariaLabel, "aria-current": ariaCurrent, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHaspopup, "aria-describedby": ariaDescribedby, "aria-disabled": ariaDisabled, "aria-pressed": ariaPressed, "aria-roledescription": ariaRoledescription, "aria-keyshortcuts": ariaKeyshortcuts, href, download, target, role, tooltip, tabIndex, autoFocus, style, render }, ref) => {
|
|
18
18
|
const computeIsDisabled = disabled || isLoading;
|
|
19
19
|
const { theme } = useTheme();
|
|
20
20
|
const computedSentimentLoader = useMemo(() => {
|
|
@@ -49,6 +49,7 @@ var init_Button = __esmMin(() => {
|
|
|
49
49
|
"data-testid": dataTestId,
|
|
50
50
|
"data-flip-id": dataFlipId,
|
|
51
51
|
ref,
|
|
52
|
+
form,
|
|
52
53
|
style
|
|
53
54
|
})
|
|
54
55
|
});
|
|
@@ -103,6 +104,7 @@ var init_Button = __esmMin(() => {
|
|
|
103
104
|
"data-flip-id": dataFlipId,
|
|
104
105
|
disabled: computeIsDisabled,
|
|
105
106
|
name,
|
|
107
|
+
form,
|
|
106
108
|
onBlur,
|
|
107
109
|
onClick,
|
|
108
110
|
onKeyDown,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { carouselStyle, init_styles_css, widthVar } from "./styles.css.js";
|
|
4
4
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import { CarouselItem } from './Item';
|
|
2
3
|
type CarouselProps = {
|
|
3
4
|
className?: string;
|
|
4
5
|
children?: ReactNode;
|
|
@@ -7,14 +8,7 @@ type CarouselProps = {
|
|
|
7
8
|
export declare function Carousel({ children, className, 'data-testid': dataTestId }: CarouselProps): import("react").JSX.Element;
|
|
8
9
|
export declare namespace Carousel {
|
|
9
10
|
var displayName: string;
|
|
10
|
-
|
|
11
|
-
({ children, width, style }: {
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
width?: string;
|
|
14
|
-
style?: import("react").CSSProperties;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
11
|
+
export { CarouselItem as Item };
|
|
18
12
|
}
|
|
19
13
|
export {};
|
|
20
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAGrC,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;iCAKwB,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,UAAwB,EAAE,EAAE,aAAa;;;aAqFxF,YAAY"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Checkbox, init_Checkbox } from "../Checkbox/index.js";
|
|
4
|
-
import { CheckboxGroupContext, init_Context } from "./Context.js";
|
|
5
4
|
import { checkboxGroupStyle, init_styles_css } from "./styles.css.js";
|
|
5
|
+
import { CheckboxGroupContext, init_Context } from "./Context.js";
|
|
6
6
|
import { useContext } from "react";
|
|
7
7
|
import { cn } from "@ultraviolet/utils";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -15,29 +15,7 @@ type CheckboxGroupProps = {
|
|
|
15
15
|
declare function CheckboxGroup({ legend, legendDescription, value, className, helper, error, direction, children, onChange, name, description, required, style, 'aria-describedby': ariaDescribedBy, }: CheckboxGroupProps): import("react").JSX.Element;
|
|
16
16
|
declare namespace CheckboxGroup {
|
|
17
17
|
var displayName: string;
|
|
18
|
-
|
|
19
|
-
({ onFocus, onBlur, disabled, error, name, value, children, helper, className, autoFocus, 'data-testid': dataTestId, required, tooltip, style, size, }: Omit<({
|
|
20
|
-
error?: ReactNode;
|
|
21
|
-
helper?: ReactNode;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
checked?: boolean | 'indeterminate';
|
|
24
|
-
className?: string;
|
|
25
|
-
"data-visibility"?: string;
|
|
26
|
-
required?: boolean;
|
|
27
|
-
'data-testid'?: string;
|
|
28
|
-
tooltip?: string;
|
|
29
|
-
size?: 'default' | 'small';
|
|
30
|
-
} & (Pick<InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "autoFocus" | "id" | "name" | "onBlur" | "onChange" | "onClick" | "onFocus" | "onKeyDown" | "style" | "tabIndex" | "value"> & ({
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
'aria-label'?: never;
|
|
33
|
-
} | {
|
|
34
|
-
children?: never;
|
|
35
|
-
'aria-label': string;
|
|
36
|
-
}))) & import("react").RefAttributes<HTMLInputElement>, "checked" | "onChange"> & {
|
|
37
|
-
value: string;
|
|
38
|
-
}): import("react").JSX.Element;
|
|
39
|
-
displayName: string;
|
|
40
|
-
};
|
|
18
|
+
export { CheckboxGroupCheckbox as Checkbox };
|
|
41
19
|
}
|
|
42
20
|
export { CheckboxGroupCheckbox, CheckboxGroup };
|
|
43
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQ3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAGxD,KAAK,kBAAkB,GAAG;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,CAAC,EAAE,SAAS,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,KAAK,CAAC,EAA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AAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC,GAC5E,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,kBAAkB,CAAC,CAAA;+BAKjE,EACrB,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,MAAM,EACN,KAAK,EACL,SAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,QAAgB,EAChB,KAAK,EACL,kBAAkB,EAAE,eAAe,GACpC,EAAE,kBAAkB;;;aAsDI,qBAAqB;;AAE9C,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -5,8 +5,8 @@ import { Text, init_Text } from "../Text/index.js";
|
|
|
5
5
|
import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
|
|
6
6
|
import { Description, init_Description } from "../Description/index.js";
|
|
7
7
|
import { Label, init_Label } from "../Label/index.js";
|
|
8
|
-
import { CheckboxGroupContext, init_Context } from "./Context.js";
|
|
9
8
|
import { checkboxGroupStyle, init_styles_css } from "./styles.css.js";
|
|
9
|
+
import { CheckboxGroupContext, init_Context } from "./Context.js";
|
|
10
10
|
import { CheckboxGroupCheckbox, init_SingleCheckbox } from "./SingleCheckbox.js";
|
|
11
11
|
import { useId, useMemo } from "react";
|
|
12
12
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { ChipContext, init_ChipContext } from "./ChipContext.js";
|
|
4
3
|
import { chipStyle, init_styles_css } from "./styles.css.js";
|
|
4
|
+
import { ChipContext, init_ChipContext } from "./ChipContext.js";
|
|
5
5
|
import { useContext } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { ChipIcon } from './ChipIcon';
|
|
2
3
|
type ChipType = {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
size?: 'medium' | 'large';
|
|
@@ -12,14 +13,7 @@ type ChipType = {
|
|
|
12
13
|
export declare function Chip({ children, size, disabled, active, className, 'data-testid': dataTestId, onClick, style, }: ChipType): import("react").JSX.Element;
|
|
13
14
|
export declare namespace Chip {
|
|
14
15
|
var displayName: string;
|
|
15
|
-
|
|
16
|
-
({ icon, onClick, 'data-testid': dataTestId }: {
|
|
17
|
-
icon: ReactNode;
|
|
18
|
-
onClick?: () => void;
|
|
19
|
-
'data-testid'?: string;
|
|
20
|
-
}): import("react").JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
16
|
+
export { ChipIcon as Icon };
|
|
23
17
|
}
|
|
24
18
|
export {};
|
|
25
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGrC,KAAK,QAAQ,GAAG;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;6BAKoB,EACnB,QAAQ,EACR,IAAe,EACf,QAAgB,EAChB,MAAc,EACd,SAAS,EACT,aAAa,EAAE,UAAU,EACzB,OAAO,EACP,KAAK,GACN,EAAE,QAAQ;;;aAiEC,QAAQ"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
4
4
|
import { Text, init_Text } from "../Text/index.js";
|
|
5
|
-
import { ChipContext, init_ChipContext } from "./ChipContext.js";
|
|
6
5
|
import { chipStyle, init_styles_css } from "./styles.css.js";
|
|
6
|
+
import { ChipContext, init_ChipContext } from "./ChipContext.js";
|
|
7
7
|
import { ChipIcon, init_ChipIcon } from "./ChipIcon.js";
|
|
8
8
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -3,9 +3,9 @@ import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
|
3
3
|
import { Stack, init_Stack } from "../../Stack/index.js";
|
|
4
4
|
import { Text, init_Text } from "../../Text/index.js";
|
|
5
5
|
import { Button, init_Button } from "../../Button/index.js";
|
|
6
|
+
import { dateInputStyle, init_styles_css } from "../styles.css.js";
|
|
6
7
|
import { DateInputContext, init_Context } from "../Context.js";
|
|
7
8
|
import { getNextMonth, getPreviousMonth, init_helpers } from "../helpers.js";
|
|
8
|
-
import { dateInputStyle, init_styles_css } from "../styles.css.js";
|
|
9
9
|
import { Daily, init_CalendarDaily } from "./CalendarDaily.js";
|
|
10
10
|
import { Monthly, init_CalendarMonthly } from "./CalendarMonthly.js";
|
|
11
11
|
import { useContext } from "react";
|
|
@@ -3,10 +3,10 @@ import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
|
3
3
|
import { Text, init_Text } from "../../Text/index.js";
|
|
4
4
|
import { Button, init_Button } from "../../Button/index.js";
|
|
5
5
|
import { Row, init_Row } from "../../Row/index.js";
|
|
6
|
+
import { dateInputStyle, init_styles_css } from "../styles.css.js";
|
|
6
7
|
import { DateInputContext, init_Context } from "../Context.js";
|
|
7
8
|
import { formatValue, getIsInHoveredRange, getMonthFirstDay, getNextMonth, getPreviousMonth, init_helpers, isSameDay } from "../helpers.js";
|
|
8
9
|
import { init_constants } from "../constants.js";
|
|
9
|
-
import { dateInputStyle, init_styles_css } from "../styles.css.js";
|
|
10
10
|
import { useContext, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Button, init_Button } from "../../Button/index.js";
|
|
4
4
|
import { Row, init_Row } from "../../Row/index.js";
|
|
5
|
+
import { dateInputStyle, init_styles_css } from "../styles.css.js";
|
|
5
6
|
import { DateInputContext, init_Context } from "../Context.js";
|
|
6
7
|
import { formatValue, getIsInHoveredRange, init_helpers, isSameMonth } from "../helpers.js";
|
|
7
|
-
import { dateInputStyle, init_styles_css } from "../styles.css.js";
|
|
8
8
|
import { useContext, useState } from "react";
|
|
9
9
|
import { cn } from "@ultraviolet/utils";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Popup, init_Popup as init_Popup$1 } from "../../Popup/index.js";
|
|
4
|
-
import { POPUP_WIDTH, init_constants } from "../constants.js";
|
|
5
4
|
import { dateInputStyle, init_styles_css } from "../styles.css.js";
|
|
5
|
+
import { POPUP_WIDTH, init_constants } from "../constants.js";
|
|
6
6
|
import { useLayoutEffect, useRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
@@ -3,10 +3,10 @@ import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
|
3
3
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
4
4
|
import { Text, init_Text } from "../Text/index.js";
|
|
5
5
|
import { TextInput, init_TextInput } from "../TextInput/index.js";
|
|
6
|
+
import { dateInputStyle, init_styles_css } from "./styles.css.js";
|
|
6
7
|
import { Card, init_Card } from "../Card/index.js";
|
|
7
8
|
import { DateInputContext, init_Context } from "./Context.js";
|
|
8
9
|
import { createDate, createDateRange, formatValue, init_helpers } from "./helpers.js";
|
|
9
|
-
import { dateInputStyle, init_styles_css } from "./styles.css.js";
|
|
10
10
|
import { CalendarContent, init_CalendarContent } from "./components/CalendarContent.js";
|
|
11
11
|
import { CalendarPopup, init_Popup } from "./components/Popup.js";
|
|
12
12
|
import { getDays, getLocalizedMonths, getMonths, init_helpersLocale } from "./helpersLocale.js";
|
|
@@ -222,7 +222,8 @@ var init_DateInput = __esmMin(() => {
|
|
|
222
222
|
suffix: /* @__PURE__ */ jsx(CalendarRangeIcon, {
|
|
223
223
|
disabled,
|
|
224
224
|
sentiment: "neutral",
|
|
225
|
-
|
|
225
|
+
prominence: "weak",
|
|
226
|
+
size: "small"
|
|
226
227
|
}),
|
|
227
228
|
tooltip,
|
|
228
229
|
value: inputValue
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
import { Modal } from '../Modal';
|
|
3
|
+
import { DialogButton } from './components/Button';
|
|
4
|
+
import { DialogButtons } from './components/Buttons';
|
|
5
|
+
import { DialogCancelButton } from './components/CancelButton';
|
|
6
|
+
import { DialogStack } from './components/Stack';
|
|
7
|
+
import { DialogText } from './components/Text';
|
|
3
8
|
import type { DialogSentiment } from './constants';
|
|
4
|
-
import
|
|
9
|
+
import { useDialogContext } from './Context';
|
|
5
10
|
type DialogProps = Pick<ComponentProps<typeof Modal>, 'ariaLabel' | 'children' | 'className' | 'data-testid' | 'disclosure' | 'hideOnClickOutside' | 'hideOnEsc' | 'id' | 'isClosable' | 'onBeforeClose' | 'onClose' | 'open' | 'placement' | 'style'> & {
|
|
6
11
|
title: string;
|
|
7
12
|
sentiment: DialogSentiment;
|
|
@@ -13,104 +18,13 @@ export declare namespace BaseDialog {
|
|
|
13
18
|
/**
|
|
14
19
|
* The Dialog component is used to show content on top of an overlay that requires user interaction.
|
|
15
20
|
*/
|
|
16
|
-
export declare const Dialog: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} & Pick<({
|
|
24
|
-
type?: import("react").ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
25
|
-
autoFocus?: import("react").ButtonHTMLAttributes<HTMLButtonElement>['autoFocus'];
|
|
26
|
-
role?: import("react").AriaRole;
|
|
27
|
-
className?: string;
|
|
28
|
-
'data-testid'?: string;
|
|
29
|
-
'data-flip-id'?: string;
|
|
30
|
-
isLoading?: boolean;
|
|
31
|
-
'aria-label'?: string;
|
|
32
|
-
'aria-current'?: boolean;
|
|
33
|
-
'aria-controls'?: string;
|
|
34
|
-
'aria-expanded'?: boolean;
|
|
35
|
-
'aria-haspopup'?: boolean;
|
|
36
|
-
'aria-describedby'?: string;
|
|
37
|
-
'aria-disabled'?: boolean;
|
|
38
|
-
'aria-pressed'?: boolean;
|
|
39
|
-
'aria-roledescription'?: string;
|
|
40
|
-
'aria-keyshortcuts'?: string;
|
|
41
|
-
onClick?: import("react").MouseEventHandler<HTMLElement>;
|
|
42
|
-
tooltip?: string;
|
|
43
|
-
tabIndex?: import("react").ButtonHTMLAttributes<HTMLButtonElement>['tabIndex'];
|
|
44
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLElement>;
|
|
45
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLElement>;
|
|
46
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLElement>;
|
|
47
|
-
onBlur?: import("react").ButtonHTMLAttributes<HTMLElement>['onBlur'];
|
|
48
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
|
|
49
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
|
|
50
|
-
onPointerDown?: import("react").ButtonHTMLAttributes<HTMLButtonElement>['onPointerDown'];
|
|
51
|
-
onKeyDown?: import("react").ButtonHTMLAttributes<HTMLButtonElement>['onKeyDown'];
|
|
52
|
-
style?: import("react").CSSProperties;
|
|
53
|
-
} & {
|
|
54
|
-
disabled?: boolean | undefined;
|
|
55
|
-
fullWidth?: boolean | undefined;
|
|
56
|
-
sentiment?: "black" | "danger" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | "white" | undefined;
|
|
57
|
-
size?: "large" | "medium" | "small" | "xsmall" | undefined;
|
|
58
|
-
variant?: "filled" | "ghost" | "outlined" | undefined;
|
|
59
|
-
} & ({
|
|
60
|
-
children: import("react").ReactNode;
|
|
61
|
-
name?: string;
|
|
62
|
-
} & ((Without<{
|
|
63
|
-
href?: string;
|
|
64
|
-
target?: string;
|
|
65
|
-
download?: string;
|
|
66
|
-
}, {
|
|
67
|
-
render: import("@ultraviolet/utils").RenderProp;
|
|
68
|
-
}> & {
|
|
69
|
-
render: import("@ultraviolet/utils").RenderProp;
|
|
70
|
-
}) | (Without<{
|
|
71
|
-
render: import("@ultraviolet/utils").RenderProp;
|
|
72
|
-
}, {
|
|
73
|
-
href?: string;
|
|
74
|
-
target?: string;
|
|
75
|
-
download?: string;
|
|
76
|
-
}> & {
|
|
77
|
-
href?: string;
|
|
78
|
-
target?: string;
|
|
79
|
-
download?: string;
|
|
80
|
-
})))) & import("react").RefAttributes<Element>, "disabled" | "onClick" | "style" | "tooltip">): import("react").JSX.Element;
|
|
81
|
-
displayName: string;
|
|
82
|
-
};
|
|
83
|
-
Buttons: {
|
|
84
|
-
({ secondaryButton, primaryButton }: {
|
|
85
|
-
secondaryButton: import("react").ReactNode;
|
|
86
|
-
primaryButton: import("react").ReactNode;
|
|
87
|
-
}): import("react").JSX.Element;
|
|
88
|
-
displayName: string;
|
|
89
|
-
};
|
|
90
|
-
CancelButton: {
|
|
91
|
-
({ children, onClick, disabled, style }: {
|
|
92
|
-
children: import("react").ReactNode;
|
|
93
|
-
onClick: ComponentProps<typeof import("..").Button>['onClick'];
|
|
94
|
-
disabled?: ComponentProps<typeof import("..").Button>['disabled'];
|
|
95
|
-
style?: import("react").CSSProperties;
|
|
96
|
-
}): import("react").JSX.Element;
|
|
97
|
-
displayName: string;
|
|
98
|
-
};
|
|
99
|
-
Stack: {
|
|
100
|
-
({ children, style }: {
|
|
101
|
-
children: import("react").ReactNode;
|
|
102
|
-
style?: import("react").CSSProperties;
|
|
103
|
-
}): import("react").JSX.Element;
|
|
104
|
-
displayName: string;
|
|
105
|
-
};
|
|
106
|
-
Text: {
|
|
107
|
-
({ children, style }: {
|
|
108
|
-
children: React.ReactNode;
|
|
109
|
-
style?: import("react").CSSProperties;
|
|
110
|
-
}): import("react").JSX.Element;
|
|
111
|
-
displayName: string;
|
|
112
|
-
};
|
|
113
|
-
useDialogContext: () => DialogContextType;
|
|
21
|
+
export declare const Dialog: typeof BaseDialog & {
|
|
22
|
+
Button: typeof DialogButton;
|
|
23
|
+
Buttons: typeof DialogButtons;
|
|
24
|
+
CancelButton: typeof DialogCancelButton;
|
|
25
|
+
Stack: typeof DialogStack;
|
|
26
|
+
Text: typeof DialogText;
|
|
27
|
+
useDialogContext: typeof useDialogContext;
|
|
114
28
|
};
|
|
115
29
|
export {};
|
|
116
30
|
//# sourceMappingURL=index.d.ts.map
|