@beweco/aurora-ui 1.0.0-beta.113 → 1.0.0-beta.116
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/assets/css/styles.css +1 -1
- package/dist/index.cjs.js +136 -28
- package/dist/index.esm.js +139 -28
- package/dist/types/__smoke__/v2-api-surface.d.ts +35 -6
- package/dist/types/__smoke__/v2-api-surface.d.ts.map +1 -1
- package/dist/types/components/switch/Switch.d.ts +20 -5
- package/dist/types/components/switch/Switch.d.ts.map +1 -1
- package/dist/types/components/switch/Switch.types.d.ts.map +1 -1
- package/dist/types/components/switch/index.d.ts +2 -2
- package/dist/types/components/switch/index.d.ts.map +1 -1
- package/dist/types/components/toast/GlobalToast.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/providers/theme/apply-theme-class.d.ts +12 -0
- package/dist/types/providers/theme/apply-theme-class.d.ts.map +1 -0
- package/dist/types/providers/theme/useThemeManager.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,6EAA6E;AAC7E,MAAM,MAAM,WAAW,GACpB,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAMZ,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,6EAA6E;AAC7E,MAAM,MAAM,WAAW,GACpB,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAMZ,MAAM,WAAW,WAChB,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,MAAM,CAAC;IAClD,wCAAwC;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,sCAAsC;IACtC,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Switch as SwitchComponent } from "./Switch";
|
|
2
|
-
export type { SwitchProps as SwitchPropsComponent } from "./Switch.types";
|
|
1
|
+
export { Switch, Switch as SwitchComponent, default } from "./Switch";
|
|
2
|
+
export type { SwitchColor, SwitchProps, SwitchProps as SwitchPropsComponent, SwitchSize, } from "./Switch.types";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,eAAe,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACtE,YAAY,EACX,WAAW,EACX,WAAW,EACX,WAAW,IAAI,oBAAoB,EACnC,UAAU,GACV,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalToast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/GlobalToast.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalToast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/GlobalToast.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACX,gBAAgB,EAEhB,MAAM,qBAAqB,CAAC;AA+G7B,wBAAgB,WAAW,CAAC,EAAE,YAAiB,EAAE,GAAE,gBAAqB,sCAgGvE"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./styles/globals.css";
|
|
2
2
|
import "./styles/linda-aura.css";
|
|
3
|
-
export { Accordion, AccordionItem, Avatar, Breadcrumbs, CardFooter, CardHeader, CheckboxGroup, CloseButton, cn, type DateValue, Drawer, DrawerBody, DrawerContent, DrawerFooter, DrawerHeader, Dropdown, DropdownItem, DropdownMenu, DropdownSection, DropdownTrigger, Link, Popover, PopoverContent, PopoverTrigger, Radio, RadioGroup, type RangeValue, Skeleton, Slider, Spinner,
|
|
3
|
+
export { Accordion, AccordionItem, Avatar, Breadcrumbs, CardFooter, CardHeader, CheckboxGroup, CloseButton, cn, type DateValue, Drawer, DrawerBody, DrawerContent, DrawerFooter, DrawerHeader, Dropdown, DropdownItem, DropdownMenu, DropdownSection, DropdownTrigger, Link, Popover, PopoverContent, PopoverTrigger, Radio, RadioGroup, type RangeValue, Skeleton, Slider, Spinner, Tab, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, } from "@heroui/react";
|
|
4
4
|
export { AutocompleteItem, BreadcrumbItem, CardBody, Divider, HeroUIProvider, Image, Progress, SelectItem, SelectSection, useDisclosure, type Selection, type SortDescriptor, type TextAreaProps, } from "./compat/heroui-v2-shims";
|
|
5
5
|
export * from "./components/accordion-list";
|
|
6
6
|
export * from "./components/add-holiday-form";
|
|
@@ -67,6 +67,7 @@ export * from "./utils/formatters";
|
|
|
67
67
|
export { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, type ModalProps, } from "./components/modal";
|
|
68
68
|
export { Alert, type AlertClassNames, type AlertColor, type AlertProps, type AlertRadius, type AlertStatus, type AlertTranslations, type AlertVariant, } from "./components/alert";
|
|
69
69
|
export { Checkbox, type CheckboxClassNames, type CheckboxColor, type CheckboxIconProps, type CheckboxProps, type CheckboxRadius, type CheckboxSize, } from "./components/checkbox";
|
|
70
|
+
export { Switch, type SwitchColor, type SwitchProps, type SwitchSize, } from "./components/switch";
|
|
70
71
|
export { AuraAutocomplete, AuraAutocomplete as Autocomplete, type AuraAutocompleteProps, } from "./components/autocomplete";
|
|
71
72
|
export { Button, type ButtonProps } from "./components/button";
|
|
72
73
|
export { Card, type CardProps } from "./components/card";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,yBAAyB,CAAC;AAuBjC,OAAO,EACN,SAAS,EACT,aAAa,EACb,MAAM,EACN,WAAW,EACX,UAAU,EACV,UAAU,EACV,aAAa,EACb,WAAW,EACX,EAAE,EACF,KAAK,SAAS,EACd,MAAM,EACN,UAAU,EACV,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,eAAe,EACf,IAAI,EACJ,OAAO,EACP,cAAc,EACd,cAAc,EACd,KAAK,EACL,UAAU,EACV,KAAK,UAAU,EACf,QAAQ,EACR,MAAM,EACN,OAAO,EACP,GAAG,EACH,KAAK,EACL,SAAS,EACT,SAAS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V,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,OAAO,GACZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACN,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACN,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GACzB,MAAM,mCAAmC,CAAC;AAG3C,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAI9C,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deja en el `<html>` la clase del pack `theme` y ninguna otra de {@link ALL_THEMES}.
|
|
3
|
+
*
|
|
4
|
+
* El DOM se escribe SÍNCRONAMENTE y no se delega el `add` a un efecto de React a propósito:
|
|
5
|
+
* cuando una app reaplica el pack que ya estaba (tema de sesión + brand-config asíncrono con
|
|
6
|
+
* el mismo valor), el `setState` recibe un valor idéntico, React hace bail-out y el efecto no
|
|
7
|
+
* vuelve a correr. Con el `remove` aquí y el `add` allí, ese caso dejaba el `<html>` sin clase
|
|
8
|
+
* de tema y `--color-primary` caía al azul base del `@theme static`. Quitar y añadir juntas
|
|
9
|
+
* hace la función idempotente por construcción.
|
|
10
|
+
*/
|
|
11
|
+
export declare function applyThemeClass(root: HTMLElement, theme: string): void;
|
|
12
|
+
//# sourceMappingURL=apply-theme-class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-theme-class.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/apply-theme-class.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAGtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeManager.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/useThemeManager.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,UAAU,EACV,SAAS,EACT,MAAM,yCAAyC,CAAC;AAiDjD;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;
|
|
1
|
+
{"version":3,"file":"useThemeManager.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/useThemeManager.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,UAAU,EACV,SAAS,EACT,MAAM,yCAAyC,CAAC;AAiDjD;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;uBAqFhB,SAAS;yBAUR,UAAU,GAAG,MAAM;CAiC/B,CAAC"}
|