@lolmath/ui 6.1.0 → 6.3.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/es/index.css +34 -8
- package/dist/es/index.d.ts +6 -3
- package/dist/es/index.js +38 -5
- package/dist/es/index.js.map +1 -1
- package/dist/lib/index.css +34 -8
- package/dist/lib/index.d.ts +6 -3
- package/dist/lib/index.js +38 -5
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.css
CHANGED
|
@@ -1245,9 +1245,9 @@
|
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
|
-
/* src/components/menu.module.css?css_virtual&hash=
|
|
1248
|
+
/* src/components/menu/menu.module.css?css_virtual&hash=740d4 */
|
|
1249
1249
|
@layer lol {
|
|
1250
|
-
.
|
|
1250
|
+
.menu_c1735 {
|
|
1251
1251
|
box-sizing: border-box;
|
|
1252
1252
|
overflow: auto;
|
|
1253
1253
|
min-width: 150px;
|
|
@@ -1258,7 +1258,7 @@
|
|
|
1258
1258
|
border: 2px solid transparent;
|
|
1259
1259
|
font-family: var(--lol-font-family-spiegel);
|
|
1260
1260
|
}
|
|
1261
|
-
.
|
|
1261
|
+
.item_c1735 {
|
|
1262
1262
|
padding: 0.375rem 0.5rem;
|
|
1263
1263
|
outline: none;
|
|
1264
1264
|
font-size: var(--lol-font-size-sm);
|
|
@@ -1267,21 +1267,47 @@
|
|
|
1267
1267
|
letter-spacing: var(--lol-letter-spacing-sm);
|
|
1268
1268
|
color: var(--lol-color-gold-300);
|
|
1269
1269
|
}
|
|
1270
|
-
.
|
|
1270
|
+
.item_c1735[data-disabled] {
|
|
1271
1271
|
color: var(--lol-color-grey-150);
|
|
1272
1272
|
}
|
|
1273
|
-
.
|
|
1274
|
-
.
|
|
1273
|
+
.item_c1735[data-hovered],
|
|
1274
|
+
.item_c1735[data-focus-visible] {
|
|
1275
1275
|
background: var(--lol-color-grey-300);
|
|
1276
1276
|
color: var(--lol-color-gold-100);
|
|
1277
1277
|
}
|
|
1278
|
-
.
|
|
1278
|
+
.item_c1735[data-pressed] {
|
|
1279
1279
|
color: var(--lol-color-gold-300);
|
|
1280
1280
|
}
|
|
1281
|
-
.
|
|
1281
|
+
.item_c1735[data-selection-mode] {
|
|
1282
|
+
padding-right: 2rem;
|
|
1283
|
+
}
|
|
1284
|
+
.item_c1735[data-selected] {
|
|
1285
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAALCAYAAABPhbxiAAAAsElEQVR42pTQXQoBURTA8ZmbdxuxAi/WgfLmQb4pYgMi36QUJUuxBIvw7FEi/qfOrds0NPfW7+We85+mG95v18DjhGjglPKMNqjibTyilUYTbE3CaIE65ujLZZJQlptYomsvJUyjp1+Oi1pYo+MOjA7GmEWiKdrY6c7HHcqrjpDRpQeGGslv7VGLRjZ8Ii9PjAFyyOKISlxkQzkvFDUu4Izyr8gNA41KuODwL5LzFWAAUJ8mTIVblvcAAAAASUVORK5CYII=);
|
|
1286
|
+
background-position: right 0.5rem center;
|
|
1287
|
+
background-repeat: no-repeat;
|
|
1288
|
+
}
|
|
1289
|
+
.item_c1735[aria-haspopup] {
|
|
1290
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAH5QTFRFAAAA8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS0Xa8KQAAACp0Uk5TABq/MRLO/+oKqeQkCy8NpOE2Ca4mBrzfBbbbIAeo3iOeMrCjE9TmLR7Bzkf64wAAAH1JREFUeJw9zrEKwkAQhOF/yAlyBiHhlBQWFha+/9tYyaERBEUhBhtPPPA22327CzMCJCX+I3CZnzRxnm9Oo5E6ZVeDkaXeeD2MtBrw7mZkpSfNazR2uhPUF250zZtYnutwoauOFrQ+E2axBLXNCb/orcZOcavDVJK9vkX8ALB9HQ/tuMKnAAAAAElFTkSuQmCC);
|
|
1291
|
+
background-size: 12px;
|
|
1292
|
+
background-position: right 0.5rem center;
|
|
1293
|
+
background-repeat: no-repeat;
|
|
1294
|
+
}
|
|
1295
|
+
.popover_c1735 {
|
|
1282
1296
|
display: flex;
|
|
1283
1297
|
flex-direction: column;
|
|
1284
1298
|
}
|
|
1299
|
+
.section_c1735:not(:first-child) {
|
|
1300
|
+
margin-top: 0.1rem;
|
|
1301
|
+
}
|
|
1302
|
+
.header_c1735 {
|
|
1303
|
+
padding: 0.5rem 0.5rem 0.2rem 0.5rem;
|
|
1304
|
+
font-size: var(--lol-font-size-sm);
|
|
1305
|
+
}
|
|
1306
|
+
.separator_c1735 {
|
|
1307
|
+
height: 1px;
|
|
1308
|
+
background: rgb(from var(--lol-color-gold-100) r g b / 0.25);
|
|
1309
|
+
margin: 0.4rem 0.5rem;
|
|
1310
|
+
}
|
|
1285
1311
|
}
|
|
1286
1312
|
|
|
1287
1313
|
/* src/components/select/multiple-select.module.css?css_virtual&hash=2f6cf */
|
package/dist/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_aria_components from 'react-aria-components';
|
|
2
|
-
import { ButtonProps as ButtonProps$1, DisclosureProps, DisclosurePanelProps, BreadcrumbsProps, BreadcrumbProps, LinkProps, CheckboxProps, HeadingProps as HeadingProps$1, ModalOverlayProps, DialogProps, NumberFieldProps, Input, Group, ProgressBarProps as ProgressBarProps$1, RadioGroupProps, RadioProps, SearchFieldProps, PopoverProps, ListBoxProps, ListBoxItemProps, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SliderOutputProps, SwitchProps, TabListProps, TabProps, TabPanelProps, TextFieldProps, TextAreaProps, InputProps, ToggleButtonProps as ToggleButtonProps$1, LabelProps as LabelProps$1, MenuTrigger as MenuTrigger$1, MenuProps, MenuItemProps, ComboBoxProps, TagProps } from 'react-aria-components';
|
|
3
|
-
export { Autocomplete, Dialog, DialogTrigger, Key, MenuItemProps, MenuProps, RouterProvider, Select, SelectValue, Popover as UnstyledPopover, useFilter } from 'react-aria-components';
|
|
2
|
+
import { ButtonProps as ButtonProps$1, DisclosureProps, DisclosurePanelProps, BreadcrumbsProps, BreadcrumbProps, LinkProps, CheckboxProps, HeadingProps as HeadingProps$1, ModalOverlayProps, DialogProps, NumberFieldProps, Input, Group, ProgressBarProps as ProgressBarProps$1, RadioGroupProps, RadioProps, SearchFieldProps, PopoverProps, ListBoxProps, ListBoxItemProps, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SliderOutputProps, SwitchProps, TabListProps, TabProps, TabPanelProps, TextFieldProps, TextAreaProps, InputProps, ToggleButtonProps as ToggleButtonProps$1, LabelProps as LabelProps$1, MenuTrigger as MenuTrigger$1, MenuProps, MenuItemProps, MenuSectionProps, Header, SeparatorProps, ComboBoxProps, TagProps } from 'react-aria-components';
|
|
3
|
+
export { Autocomplete, Collection, Dialog, DialogTrigger, Key, MenuItemProps, MenuProps, RouterProvider, Select, SelectValue, Selection, Popover as UnstyledPopover, useFilter } from 'react-aria-components';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import react__default, { Ref, ComponentProps, JSX } from 'react';
|
|
@@ -493,6 +493,9 @@ declare const SubmenuTrigger: (props: react_aria_components.SubmenuTriggerProps
|
|
|
493
493
|
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): react_jsx_runtime.JSX.Element;
|
|
494
494
|
declare function MenuItem<T extends object>({ className, ...props }: MenuItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
495
495
|
declare function MenuPopover({ className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
496
|
+
declare function MenuSection<T extends object>({ className, ...props }: MenuSectionProps<T>): react_jsx_runtime.JSX.Element;
|
|
497
|
+
declare function MenuHeader({ className, ...props }: ComponentProps<typeof Header>): react_jsx_runtime.JSX.Element;
|
|
498
|
+
declare function MenuSeparator({ className, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
496
499
|
|
|
497
500
|
interface SelectedKey {
|
|
498
501
|
id: Key;
|
|
@@ -513,4 +516,4 @@ declare function MultipleSelect<T extends SelectedKey>({ children, items, select
|
|
|
513
516
|
|
|
514
517
|
declare function Tag({ children, className, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
|
515
518
|
|
|
516
|
-
export { Breadcrumb, Breadcrumbs, Button, ButtonLink, type ButtonPreset, type ButtonShape, type ButtonSize, Checkbox, DialogButtons, DialogHeading, Disclosure, DisclosureButton, DisclosureGroup, DisclosurePanel, Divider, Heading, type HeadingColor, type HeadingElement, Label, Menu, MenuItem, MenuPopover, MenuTrigger, Modal, MultipleSelect, NumberField, Popover, ProgressBar, Radio, RadioGroup, SearchField, SelectButton, SelectListBox, SelectListBoxItem, SelectPopover, type SelectedKey, Slider, SliderOutput, Sonner, type SonnerProps, Spinner, SubmenuTrigger, Switch, Tab, TabList, TabPanel, Tabs, Tag, Text, TextArea, type TextColor, type TextElement, TextField, type TextPreset, type ToastVariant, ToggleButton, type ToggleButtonPreset, _Button, _ButtonLink, button, heading, sonner, text, textField };
|
|
519
|
+
export { Breadcrumb, Breadcrumbs, Button, ButtonLink, type ButtonPreset, type ButtonShape, type ButtonSize, Checkbox, DialogButtons, DialogHeading, Disclosure, DisclosureButton, DisclosureGroup, DisclosurePanel, Divider, Heading, type HeadingColor, type HeadingElement, Label, Menu, MenuHeader, MenuItem, MenuPopover, MenuSection, MenuSeparator, MenuTrigger, Modal, MultipleSelect, NumberField, Popover, ProgressBar, Radio, RadioGroup, SearchField, SelectButton, SelectListBox, SelectListBoxItem, SelectPopover, type SelectedKey, Slider, SliderOutput, Sonner, type SonnerProps, Spinner, SubmenuTrigger, Switch, Tab, TabList, TabPanel, Tabs, Tag, Text, TextArea, type TextColor, type TextElement, TextField, type TextPreset, type ToastVariant, ToggleButton, type ToggleButtonPreset, _Button, _ButtonLink, button, heading, sonner, text, textField };
|
package/dist/es/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
RouterProvider,
|
|
4
4
|
DialogTrigger,
|
|
5
5
|
Dialog as Dialog3,
|
|
6
|
+
Collection,
|
|
6
7
|
Popover as Popover3
|
|
7
8
|
} from "react-aria-components";
|
|
8
9
|
|
|
@@ -1362,21 +1363,24 @@ function Popover({ children, className, ...props }) {
|
|
|
1362
1363
|
);
|
|
1363
1364
|
}
|
|
1364
1365
|
|
|
1365
|
-
// src/components/menu.tsx
|
|
1366
|
+
// src/components/menu/menu.tsx
|
|
1366
1367
|
import { cx as cx13 } from "cva";
|
|
1367
1368
|
import {
|
|
1369
|
+
Header as AriaHeader,
|
|
1368
1370
|
Menu as AriaMenu,
|
|
1369
1371
|
MenuItem as AriaMenuItem,
|
|
1372
|
+
MenuSection as AriaMenuSection,
|
|
1370
1373
|
MenuTrigger as AriaMenuTrigger,
|
|
1371
1374
|
Popover as AriaPopover3,
|
|
1375
|
+
Separator as AriaSeparator,
|
|
1372
1376
|
SubmenuTrigger as AriaSubmenuTrigger,
|
|
1373
1377
|
composeRenderProps as composeRenderProps18
|
|
1374
1378
|
} from "react-aria-components";
|
|
1375
1379
|
|
|
1376
|
-
// src/components/menu.module.css
|
|
1377
|
-
var menu_default = { "menu": "
|
|
1380
|
+
// src/components/menu/menu.module.css
|
|
1381
|
+
var menu_default = { "menu": "menu_c1735", "item": "item_c1735", "popover": "popover_c1735", "section": "section_c1735", "header": "header_c1735", "separator": "separator_c1735" };
|
|
1378
1382
|
|
|
1379
|
-
// src/components/menu.tsx
|
|
1383
|
+
// src/components/menu/menu.tsx
|
|
1380
1384
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1381
1385
|
var MenuTrigger = AriaMenuTrigger;
|
|
1382
1386
|
var SubmenuTrigger = AriaSubmenuTrigger;
|
|
@@ -1393,7 +1397,7 @@ function MenuItem({
|
|
|
1393
1397
|
...props,
|
|
1394
1398
|
className: composeRenderProps18(
|
|
1395
1399
|
className,
|
|
1396
|
-
(className2
|
|
1400
|
+
(className2) => cx13(menu_default.item, className2)
|
|
1397
1401
|
)
|
|
1398
1402
|
}
|
|
1399
1403
|
);
|
|
@@ -1410,6 +1414,31 @@ function MenuPopover({ className, ...props }) {
|
|
|
1410
1414
|
}
|
|
1411
1415
|
);
|
|
1412
1416
|
}
|
|
1417
|
+
function MenuSection({
|
|
1418
|
+
className,
|
|
1419
|
+
...props
|
|
1420
|
+
}) {
|
|
1421
|
+
return /* @__PURE__ */ jsx22(AriaMenuSection, { ...props, className: cx13(className, menu_default.section) });
|
|
1422
|
+
}
|
|
1423
|
+
function MenuHeader({
|
|
1424
|
+
className,
|
|
1425
|
+
...props
|
|
1426
|
+
}) {
|
|
1427
|
+
return /* @__PURE__ */ jsx22(
|
|
1428
|
+
AriaHeader,
|
|
1429
|
+
{
|
|
1430
|
+
...props,
|
|
1431
|
+
className: heading({
|
|
1432
|
+
className: cx13(className, menu_default.header),
|
|
1433
|
+
color: "gold100",
|
|
1434
|
+
preset: "h5"
|
|
1435
|
+
})
|
|
1436
|
+
}
|
|
1437
|
+
);
|
|
1438
|
+
}
|
|
1439
|
+
function MenuSeparator({ className, ...props }) {
|
|
1440
|
+
return /* @__PURE__ */ jsx22(AriaSeparator, { ...props, className: cx13(className, menu_default.separator) });
|
|
1441
|
+
}
|
|
1413
1442
|
|
|
1414
1443
|
// src/components/select/multiple-select.tsx
|
|
1415
1444
|
import { cva as cva13 } from "cva";
|
|
@@ -1671,6 +1700,7 @@ export {
|
|
|
1671
1700
|
Button2 as Button,
|
|
1672
1701
|
ButtonLink,
|
|
1673
1702
|
Checkbox,
|
|
1703
|
+
Collection,
|
|
1674
1704
|
Dialog3 as Dialog,
|
|
1675
1705
|
DialogButtons,
|
|
1676
1706
|
DialogHeading,
|
|
@@ -1683,8 +1713,11 @@ export {
|
|
|
1683
1713
|
Heading,
|
|
1684
1714
|
Label2 as Label,
|
|
1685
1715
|
Menu,
|
|
1716
|
+
MenuHeader,
|
|
1686
1717
|
MenuItem,
|
|
1687
1718
|
MenuPopover,
|
|
1719
|
+
MenuSection,
|
|
1720
|
+
MenuSeparator,
|
|
1688
1721
|
MenuTrigger,
|
|
1689
1722
|
Modal,
|
|
1690
1723
|
MultipleSelect,
|