@telia/teddy 0.0.32 → 0.0.34
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/components/box/box.cjs +2 -2
- package/dist/components/box/box.js +2 -2
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/chip.cjs +3 -3
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/color-dot/color-dot-root.cjs +29 -0
- package/dist/components/color-dot/color-dot-root.d.ts +20 -0
- package/dist/components/color-dot/color-dot-root.js +29 -0
- package/dist/components/color-dot/index.cjs +5 -0
- package/dist/components/color-dot/index.d.ts +12 -0
- package/dist/components/color-dot/index.js +5 -0
- package/dist/components/expandable-card/expandable-card-button.cjs +29 -0
- package/dist/components/expandable-card/expandable-card-button.d.ts +33 -0
- package/dist/components/expandable-card/expandable-card-button.js +29 -0
- package/dist/components/expandable-card/expandable-card-content.cjs +32 -0
- package/dist/components/expandable-card/expandable-card-content.d.ts +5 -0
- package/dist/components/expandable-card/expandable-card-content.js +15 -0
- package/dist/components/expandable-card/expandable-card-description.cjs +14 -0
- package/dist/components/expandable-card/expandable-card-description.d.ts +5 -0
- package/dist/components/expandable-card/expandable-card-description.js +14 -0
- package/dist/components/expandable-card/expandable-card-header.cjs +13 -0
- package/dist/components/expandable-card/expandable-card-header.d.ts +4 -0
- package/dist/components/expandable-card/expandable-card-header.js +13 -0
- package/dist/components/expandable-card/expandable-card-hidden.cjs +13 -0
- package/dist/components/expandable-card/expandable-card-hidden.d.ts +4 -0
- package/dist/components/expandable-card/expandable-card-hidden.js +13 -0
- package/dist/components/expandable-card/expandable-card-indicator.cjs +16 -0
- package/dist/components/expandable-card/expandable-card-indicator.d.ts +7 -0
- package/dist/components/expandable-card/expandable-card-indicator.js +16 -0
- package/dist/components/expandable-card/expandable-card-item.cjs +36 -0
- package/dist/components/expandable-card/expandable-card-item.d.ts +5 -0
- package/dist/components/expandable-card/expandable-card-item.js +19 -0
- package/dist/components/expandable-card/expandable-card-line.cjs +16 -0
- package/dist/components/expandable-card/expandable-card-line.d.ts +8 -0
- package/dist/components/expandable-card/expandable-card-line.js +16 -0
- package/dist/components/expandable-card/expandable-card-price.cjs +13 -0
- package/dist/components/expandable-card/expandable-card-price.d.ts +4 -0
- package/dist/components/expandable-card/expandable-card-price.js +13 -0
- package/dist/components/expandable-card/expandable-card-root.cjs +51 -0
- package/dist/components/expandable-card/expandable-card-root.d.ts +6 -0
- package/dist/components/expandable-card/expandable-card-root.js +34 -0
- package/dist/components/expandable-card/expandable-card-slot.cjs +33 -0
- package/dist/components/expandable-card/expandable-card-slot.d.ts +8 -0
- package/dist/components/expandable-card/expandable-card-slot.js +33 -0
- package/dist/components/expandable-card/expandable-card-trigger.cjs +35 -0
- package/dist/components/expandable-card/expandable-card-trigger.d.ts +8 -0
- package/dist/components/expandable-card/expandable-card-trigger.js +18 -0
- package/dist/components/expandable-card/index.cjs +37 -0
- package/dist/components/expandable-card/index.d.ts +61 -0
- package/dist/components/expandable-card/index.js +37 -0
- package/dist/components/flex/flex.cjs +2 -2
- package/dist/components/flex/flex.js +2 -2
- package/dist/components/grid/grid.cjs +2 -2
- package/dist/components/grid/grid.js +2 -2
- package/dist/components/index.cjs +10 -4
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +8 -2
- package/dist/components/list/index.d.ts +3 -0
- package/dist/components/list/list.cjs +15 -15
- package/dist/components/list/list.d.ts +6 -1
- package/dist/components/list/list.js +15 -15
- package/dist/components/modal/modal.cjs +5 -2
- package/dist/components/modal/modal.js +5 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.cjs +0 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.d.ts +4 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +0 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.cjs +45 -8
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +46 -9
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.d.ts +3 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.cjs +7 -34
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.js +7 -34
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.cjs +0 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.js +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.js +2 -2
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notabene/index.cjs +14 -2
- package/dist/components/notabene/index.d.ts +16 -1
- package/dist/components/notabene/index.js +13 -1
- package/dist/components/notabene/notabene-heading.cjs +25 -0
- package/dist/components/notabene/notabene-heading.d.ts +5 -0
- package/dist/components/notabene/notabene-heading.js +25 -0
- package/dist/components/notabene/notabene-icon.cjs +18 -0
- package/dist/components/notabene/notabene-icon.d.ts +9 -0
- package/dist/components/notabene/notabene-icon.js +18 -0
- package/dist/components/notabene/notabene-root.cjs +22 -0
- package/dist/components/notabene/notabene-root.d.ts +6 -0
- package/dist/components/notabene/notabene-root.js +22 -0
- package/dist/components/notabene/notabene.content.cjs +15 -0
- package/dist/components/notabene/notabene.content.d.ts +5 -0
- package/dist/components/notabene/notabene.content.js +15 -0
- package/dist/components/notification/notification.d.ts +2 -2
- package/dist/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/radio-group/index.cjs +20 -2
- package/dist/components/radio-group/index.d.ts +70 -2
- package/dist/components/radio-group/index.js +19 -1
- package/dist/components/radio-group/radio-group-indicator.cjs +32 -0
- package/dist/components/radio-group/radio-group-indicator.d.ts +5 -0
- package/dist/components/radio-group/radio-group-indicator.js +15 -0
- package/dist/components/radio-group/radio-group-item-label.cjs +18 -0
- package/dist/components/radio-group/radio-group-item-label.d.ts +15 -0
- package/dist/components/radio-group/radio-group-item-label.js +18 -0
- package/dist/components/radio-group/radio-group-item.cjs +16 -0
- package/dist/components/radio-group/radio-group-item.d.ts +9 -0
- package/dist/components/radio-group/radio-group-item.js +16 -0
- package/dist/components/radio-group/radio-group-label.cjs +29 -0
- package/dist/components/radio-group/radio-group-label.d.ts +66 -0
- package/dist/components/radio-group/radio-group-label.js +29 -0
- package/dist/components/radio-group/radio-group-root.cjs +46 -0
- package/dist/components/radio-group/radio-group-root.d.ts +52 -0
- package/dist/components/radio-group/radio-group-root.js +29 -0
- package/dist/components/radio-group/radio-group-trigger.cjs +38 -0
- package/dist/components/radio-group/radio-group-trigger.d.ts +14 -0
- package/dist/components/radio-group/radio-group-trigger.js +21 -0
- package/dist/components/ribbon/index.cjs +6 -0
- package/dist/components/ribbon/index.d.ts +6 -0
- package/dist/components/ribbon/index.js +6 -0
- package/dist/components/ribbon/ribbon-root.cjs +32 -0
- package/dist/components/ribbon/ribbon-root.d.ts +13 -0
- package/dist/components/ribbon/ribbon-root.js +32 -0
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/tabs-list.cjs +11 -0
- package/dist/components/tabs/tabs-list.js +11 -0
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-trigger.cjs +2 -2
- package/dist/components/tabs/tabs-trigger.d.ts +1 -1
- package/dist/components/tabs/tabs-trigger.js +2 -2
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/main.cjs +10 -4
- package/dist/main.js +8 -2
- package/dist/style.css +725 -534
- package/dist/utils/generate-styling/grid.d.ts +24 -24
- package/dist/utils/generate-styling/index.d.ts +16 -16
- package/dist/utils/generate-styling/util.d.ts +2 -2
- package/package.json +1 -1
- package/dist/components/notabene/notabene.cjs +0 -35
- package/dist/components/notabene/notabene.d.ts +0 -15
- package/dist/components/notabene/notabene.js +0 -35
- package/dist/components/radio-group/radio-group.cjs +0 -110
- package/dist/components/radio-group/radio-group.d.ts +0 -161
- package/dist/components/radio-group/radio-group.js +0 -93
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const components_notabene_notabene_content = require("./notabene.content.cjs");
|
|
4
|
+
const components_notabene_notabeneHeading = require("./notabene-heading.cjs");
|
|
5
|
+
const components_notabene_notabeneIcon = require("./notabene-icon.cjs");
|
|
6
|
+
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
7
|
+
components_notabene_notabene_content.Content.displayName = "Notabene.Content";
|
|
8
|
+
components_notabene_notabeneHeading.Heading.displayName = "Notabene.Heading";
|
|
9
|
+
components_notabene_notabeneIcon.Icon.displayName = "Notabene.Icon";
|
|
10
|
+
components_notabene_notabeneRoot.Root.displayName = "Notabene";
|
|
11
|
+
const Notabene = Object.assign(components_notabene_notabeneRoot.Root, {
|
|
12
|
+
Content: components_notabene_notabene_content.Content,
|
|
13
|
+
Heading: components_notabene_notabeneHeading.Heading,
|
|
14
|
+
Icon: components_notabene_notabeneIcon.Icon
|
|
15
|
+
});
|
|
16
|
+
exports.Notabene = Notabene;
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { Content, ContentProps } from './notabene.content';
|
|
2
|
+
import { Heading, HeadingProps } from './notabene-heading';
|
|
3
|
+
import { Icon, IconProps } from './notabene-icon';
|
|
4
|
+
import { Root, RootProps } from './notabene-root';
|
|
5
|
+
|
|
6
|
+
export declare const Notabene: typeof Root & {
|
|
7
|
+
Content: typeof Content;
|
|
8
|
+
Heading: typeof Heading;
|
|
9
|
+
Icon: typeof Icon;
|
|
10
|
+
};
|
|
11
|
+
export type NotabeneProps = {
|
|
12
|
+
Content: ContentProps;
|
|
13
|
+
Heading: HeadingProps;
|
|
14
|
+
Icon: IconProps;
|
|
15
|
+
Root: RootProps;
|
|
16
|
+
};
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Content } from "./notabene.content.js";
|
|
2
|
+
import { Heading } from "./notabene-heading.js";
|
|
3
|
+
import { Icon } from "./notabene-icon.js";
|
|
4
|
+
import { Root } from "./notabene-root.js";
|
|
5
|
+
Content.displayName = "Notabene.Content";
|
|
6
|
+
Heading.displayName = "Notabene.Heading";
|
|
7
|
+
Icon.displayName = "Notabene.Icon";
|
|
8
|
+
Root.displayName = "Notabene";
|
|
9
|
+
const Notabene = Object.assign(Root, {
|
|
10
|
+
Content,
|
|
11
|
+
Heading,
|
|
12
|
+
Icon
|
|
13
|
+
});
|
|
2
14
|
export {
|
|
3
15
|
Notabene
|
|
4
16
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const components_heading_heading = require("../heading/heading.cjs");
|
|
7
|
+
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
8
|
+
const Heading = React.forwardRef(
|
|
9
|
+
({ className, as = "h2", variant = "title-200", mb = "150", ...props }, forwardRef) => {
|
|
10
|
+
const classes = clsx([components_notabene_notabeneRoot.styles[`${components_notabene_notabeneRoot.rootClassName}__heading`]], className);
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
+
components_heading_heading.Heading,
|
|
13
|
+
{
|
|
14
|
+
...props,
|
|
15
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
16
|
+
variant,
|
|
17
|
+
ref: forwardRef,
|
|
18
|
+
className: classes,
|
|
19
|
+
mb
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
Heading.displayName = "Heading";
|
|
25
|
+
exports.Heading = Heading;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Heading as PrimitiveHeading } from '../heading';
|
|
3
|
+
|
|
4
|
+
export type HeadingProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveHeading>>;
|
|
5
|
+
export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Heading as Heading$1 } from "../heading/heading.js";
|
|
5
|
+
import { s as styles, rootClassName } from "./notabene-root.js";
|
|
6
|
+
const Heading = React__default.forwardRef(
|
|
7
|
+
({ className, as = "h2", variant = "title-200", mb = "150", ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([styles[`${rootClassName}__heading`]], className);
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
Heading$1,
|
|
11
|
+
{
|
|
12
|
+
...props,
|
|
13
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
14
|
+
variant,
|
|
15
|
+
ref: forwardRef,
|
|
16
|
+
className: classes,
|
|
17
|
+
mb
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
Heading.displayName = "Heading";
|
|
23
|
+
export {
|
|
24
|
+
Heading
|
|
25
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
require("../../assets/sprite.269ba410-teddy.svg");
|
|
7
|
+
const components_icon_icon = require("../icon/icon.cjs");
|
|
8
|
+
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
9
|
+
const Icon = React.forwardRef(
|
|
10
|
+
({ className, name, ...props }, forwardRef) => {
|
|
11
|
+
const classes = clsx([components_notabene_notabeneRoot.styles[`${components_notabene_notabeneRoot.rootClassName}__icon`]], className);
|
|
12
|
+
if (!name)
|
|
13
|
+
return null;
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", ...props, name, ref: forwardRef, className: classes });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
Icon.displayName = "Notabene.Icon";
|
|
18
|
+
exports.Icon = Icon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Icon as PrimitiveIcon } from '../icon';
|
|
3
|
+
|
|
4
|
+
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveIcon>>;
|
|
5
|
+
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
+
name: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "close" | "error" | "focus" | "play" | "present" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "food" | "fraud" | "getting-started" | "home-care" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
7
|
+
size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
5
|
+
import { Icon as Icon$1 } from "../icon/icon.js";
|
|
6
|
+
import { s as styles, rootClassName } from "./notabene-root.js";
|
|
7
|
+
const Icon = React__default.forwardRef(
|
|
8
|
+
({ className, name, ...props }, forwardRef) => {
|
|
9
|
+
const classes = clsx([styles[`${rootClassName}__icon`]], className);
|
|
10
|
+
if (!name)
|
|
11
|
+
return null;
|
|
12
|
+
return /* @__PURE__ */ jsx(Icon$1, { size: "lg", ...props, name, ref: forwardRef, className: classes });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
Icon.displayName = "Notabene.Icon";
|
|
16
|
+
export {
|
|
17
|
+
Icon
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const components_box_box = require("../box/box.cjs");
|
|
7
|
+
const styles = {
|
|
8
|
+
"teddy-notabene": "_teddy-notabene_1dybk_1",
|
|
9
|
+
"teddy-notabene__icon": "_teddy-notabene__icon_1dybk_9",
|
|
10
|
+
"teddy-notabene__heading": "_teddy-notabene__heading_1dybk_9"
|
|
11
|
+
};
|
|
12
|
+
const rootClassName = "teddy-notabene";
|
|
13
|
+
const Root = React.forwardRef(
|
|
14
|
+
({ children, className, ...props }, forwardRef) => {
|
|
15
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { ...props, ref: forwardRef, className: classes, children });
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
Root.displayName = "Root";
|
|
20
|
+
exports.Root = Root;
|
|
21
|
+
exports.rootClassName = rootClassName;
|
|
22
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Box as PrimitiveBox } from '../box';
|
|
3
|
+
|
|
4
|
+
export declare const rootClassName = "teddy-notabene";
|
|
5
|
+
export type RootProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveBox>>;
|
|
6
|
+
export declare const Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Box } from "../box/box.js";
|
|
5
|
+
const styles = {
|
|
6
|
+
"teddy-notabene": "_teddy-notabene_1dybk_1",
|
|
7
|
+
"teddy-notabene__icon": "_teddy-notabene__icon_1dybk_9",
|
|
8
|
+
"teddy-notabene__heading": "_teddy-notabene__heading_1dybk_9"
|
|
9
|
+
};
|
|
10
|
+
const rootClassName = "teddy-notabene";
|
|
11
|
+
const Root = React__default.forwardRef(
|
|
12
|
+
({ children, className, ...props }, forwardRef) => {
|
|
13
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
14
|
+
return /* @__PURE__ */ jsx(Box, { ...props, ref: forwardRef, className: classes, children });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
Root.displayName = "Root";
|
|
18
|
+
export {
|
|
19
|
+
Root,
|
|
20
|
+
rootClassName,
|
|
21
|
+
styles as s
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const components_box_box = require("../box/box.cjs");
|
|
7
|
+
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
8
|
+
const Content = React.forwardRef(
|
|
9
|
+
({ className, children, ...props }, forwardRef) => {
|
|
10
|
+
const classes = clsx([components_notabene_notabeneRoot.styles[`${components_notabene_notabeneRoot.rootClassName}__header`]], className);
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { ...props, ref: forwardRef, className: classes, children });
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
Content.displayName = "Content";
|
|
15
|
+
exports.Content = Content;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Box as PrimitiveBox } from '../box';
|
|
3
|
+
|
|
4
|
+
export type ContentProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveBox>>;
|
|
5
|
+
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Box } from "../box/box.js";
|
|
5
|
+
import { s as styles, rootClassName } from "./notabene-root.js";
|
|
6
|
+
const Content = React__default.forwardRef(
|
|
7
|
+
({ className, children, ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([styles[`${rootClassName}__header`]], className);
|
|
9
|
+
return /* @__PURE__ */ jsx(Box, { ...props, ref: forwardRef, className: classes, children });
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
Content.displayName = "Content";
|
|
13
|
+
export {
|
|
14
|
+
Content
|
|
15
|
+
};
|
|
@@ -86,8 +86,8 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
86
86
|
Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
87
87
|
Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
88
88
|
Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
89
|
-
name: "link" | "
|
|
90
|
-
size?: ("
|
|
89
|
+
name: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "close" | "error" | "focus" | "play" | "present" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "food" | "fraud" | "getting-started" | "home-care" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
90
|
+
size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
91
91
|
children?: React.ReactNode;
|
|
92
92
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
93
93
|
Dismiss: React.ForwardRefExoticComponent<DismissProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -7,6 +7,6 @@ export type ProgressBarProps = React.ComponentPropsWithoutRef<typeof ProgressPri
|
|
|
7
7
|
};
|
|
8
8
|
declare const ProgressBar: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
9
|
progress: number;
|
|
10
|
-
colorTheme?: "
|
|
10
|
+
colorTheme?: "dark" | "light" | undefined;
|
|
11
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export { ProgressBar };
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const components_radioGroup_radioGroupRoot = require("./radio-group-root.cjs");
|
|
4
|
+
const components_radioGroup_radioGroupItem = require("./radio-group-item.cjs");
|
|
5
|
+
const components_radioGroup_radioGroupTrigger = require("./radio-group-trigger.cjs");
|
|
6
|
+
const components_radioGroup_radioGroupIndicator = require("./radio-group-indicator.cjs");
|
|
7
|
+
const components_radioGroup_radioGroupItemLabel = require("./radio-group-item-label.cjs");
|
|
8
|
+
const components_radioGroup_radioGroupLabel = require("./radio-group-label.cjs");
|
|
9
|
+
components_radioGroup_radioGroupRoot.Root.displayName = "RadioGroup";
|
|
10
|
+
components_radioGroup_radioGroupItem.Item.displayName = "RadioGroup.Name";
|
|
11
|
+
components_radioGroup_radioGroupTrigger.Trigger.displayName = "RadioGroup.Trigger";
|
|
12
|
+
components_radioGroup_radioGroupIndicator.Indicator.displayName = "RadioGroup.Indicator";
|
|
13
|
+
components_radioGroup_radioGroupItemLabel.Label.displayName = "RadioGroup.Label";
|
|
14
|
+
components_radioGroup_radioGroupLabel.GroupLabel.displayName = "RadioGroup.GroupLabel";
|
|
15
|
+
const RadioGroup = Object.assign(components_radioGroup_radioGroupRoot.Root, {
|
|
16
|
+
Item: components_radioGroup_radioGroupItem.Item,
|
|
17
|
+
Trigger: components_radioGroup_radioGroupTrigger.Trigger,
|
|
18
|
+
Indicator: components_radioGroup_radioGroupIndicator.Indicator,
|
|
19
|
+
Label: components_radioGroup_radioGroupItemLabel.Label,
|
|
20
|
+
GroupLabel: components_radioGroup_radioGroupLabel.GroupLabel
|
|
21
|
+
});
|
|
22
|
+
exports.RadioGroup = RadioGroup;
|
|
@@ -1,2 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { RootProps } from './radio-group-root';
|
|
2
|
+
import { ItemProps } from './radio-group-item';
|
|
3
|
+
import { TriggerProps } from './radio-group-trigger';
|
|
4
|
+
import { IndicatorProps } from './radio-group-indicator';
|
|
5
|
+
import { LabelProps } from './radio-group-item-label';
|
|
6
|
+
import { GroupLabelProps } from './radio-group-label';
|
|
7
|
+
|
|
8
|
+
export declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-radio-group').RadioGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
defaultValue?: string | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
name?: string | undefined;
|
|
12
|
+
required?: boolean | undefined;
|
|
13
|
+
value?: string | undefined;
|
|
14
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
15
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
16
|
+
dir?: "ltr" | "rtl" | undefined;
|
|
17
|
+
loop?: boolean | undefined;
|
|
18
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
19
|
+
Item: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
|
+
Trigger: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-radio-group').RadioGroupItemProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
21
|
+
id?: string | undefined;
|
|
22
|
+
value: string;
|
|
23
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
Indicator: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-radio-group').RadioGroupIndicatorProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
25
|
+
Label: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-label').LabelProps & import('react').RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
|
+
isRequired?: boolean | undefined;
|
|
28
|
+
} & import('react').RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
29
|
+
htmlFor?: string | undefined;
|
|
30
|
+
} & import('react').RefAttributes<HTMLLabelElement>>;
|
|
31
|
+
GroupLabel: import('react').ForwardRefExoticComponent<(({
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
asChild?: false | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
as?: "h2" | undefined;
|
|
36
|
+
asChild?: false | undefined;
|
|
37
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
asChild?: false | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
as?: "h3" | undefined;
|
|
42
|
+
asChild?: false | undefined;
|
|
43
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
asChild?: false | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
as?: "h4" | undefined;
|
|
48
|
+
asChild?: false | undefined;
|
|
49
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
asChild?: false | undefined;
|
|
52
|
+
} & {
|
|
53
|
+
as?: "h5" | undefined;
|
|
54
|
+
asChild?: false | undefined;
|
|
55
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
56
|
+
id?: string | undefined;
|
|
57
|
+
asChild?: false | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
as?: "h6" | undefined;
|
|
60
|
+
asChild?: false | undefined;
|
|
61
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">)) & import('react').RefAttributes<HTMLButtonElement>>;
|
|
62
|
+
};
|
|
63
|
+
export type RadioGroupProps = {
|
|
64
|
+
Root: RootProps;
|
|
65
|
+
Item: ItemProps;
|
|
66
|
+
Trigger: TriggerProps;
|
|
67
|
+
Indicator: IndicatorProps;
|
|
68
|
+
Label: LabelProps;
|
|
69
|
+
GroupLabel: GroupLabelProps;
|
|
70
|
+
};
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Root } from "./radio-group-root.js";
|
|
2
|
+
import { Item } from "./radio-group-item.js";
|
|
3
|
+
import { Trigger } from "./radio-group-trigger.js";
|
|
4
|
+
import { Indicator } from "./radio-group-indicator.js";
|
|
5
|
+
import { Label } from "./radio-group-item-label.js";
|
|
6
|
+
import { GroupLabel } from "./radio-group-label.js";
|
|
7
|
+
Root.displayName = "RadioGroup";
|
|
8
|
+
Item.displayName = "RadioGroup.Name";
|
|
9
|
+
Trigger.displayName = "RadioGroup.Trigger";
|
|
10
|
+
Indicator.displayName = "RadioGroup.Indicator";
|
|
11
|
+
Label.displayName = "RadioGroup.Label";
|
|
12
|
+
GroupLabel.displayName = "RadioGroup.GroupLabel";
|
|
13
|
+
const RadioGroup = Object.assign(Root, {
|
|
14
|
+
Item,
|
|
15
|
+
Trigger,
|
|
16
|
+
Indicator,
|
|
17
|
+
Label,
|
|
18
|
+
GroupLabel
|
|
19
|
+
});
|
|
2
20
|
export {
|
|
3
21
|
RadioGroup
|
|
4
22
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const RadioGroupPrimitive = require("@radix-ui/react-radio-group");
|
|
5
|
+
const components_radioGroup_radioGroupRoot = require("./radio-group-root.cjs");
|
|
6
|
+
const React = require("react");
|
|
7
|
+
const clsx = require("clsx");
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
|
+
if (e) {
|
|
11
|
+
for (const k in e) {
|
|
12
|
+
if (k !== "default") {
|
|
13
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => e[k]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
const RadioGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadioGroupPrimitive);
|
|
25
|
+
const Indicator = React.forwardRef(
|
|
26
|
+
({ className, ...props }, forwardRef) => {
|
|
27
|
+
const classes = clsx([components_radioGroup_radioGroupRoot.styles[`${components_radioGroup_radioGroupRoot.rootClassName}__indicator`]], className);
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Indicator, { ...props, ref: forwardRef, className: classes });
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
Indicator.displayName = "Indicator";
|
|
32
|
+
exports.Indicator = Indicator;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
export type IndicatorProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Indicator> & {};
|
|
4
|
+
/** Indicator is the element for selecting an option. An input will also render when used within a form to ensure events propagate correctly. */
|
|
5
|
+
export declare const Indicator: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupIndicatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
+
import { s as styles, rootClassName } from "./radio-group-root.js";
|
|
4
|
+
import React__default from "react";
|
|
5
|
+
import clsx from "clsx";
|
|
6
|
+
const Indicator = React__default.forwardRef(
|
|
7
|
+
({ className, ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([styles[`${rootClassName}__indicator`]], className);
|
|
9
|
+
return /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { ...props, ref: forwardRef, className: classes });
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
Indicator.displayName = "Indicator";
|
|
13
|
+
export {
|
|
14
|
+
Indicator
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const components_label_label = require("../label/label.cjs");
|
|
6
|
+
const clsx = require("clsx");
|
|
7
|
+
const components_radioGroup_radioGroupRoot = require("./radio-group-root.cjs");
|
|
8
|
+
const components_radioGroup_radioGroupItem = require("./radio-group-item.cjs");
|
|
9
|
+
const Label = React.forwardRef(
|
|
10
|
+
({ className, ...props }, forwardRef) => {
|
|
11
|
+
const classes = clsx([components_radioGroup_radioGroupRoot.styles[`${components_radioGroup_radioGroupRoot.rootClassName}__label`]], className);
|
|
12
|
+
const context = React.useContext(components_radioGroup_radioGroupItem.ItemContext);
|
|
13
|
+
const htmlFor = props.htmlFor || (context == null ? void 0 : context.id);
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_label_label.Label, { ...props, htmlFor, ref: forwardRef, className: classes });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
Label.displayName = "Label";
|
|
18
|
+
exports.Label = Label;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Label as LabelPrimitive } from '../label';
|
|
3
|
+
|
|
4
|
+
export type LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive> & {
|
|
5
|
+
/** This is used to connect label and trigger. The connection is made automatically, but if you override the id in the trigger, you will need to provide the id here as well. */
|
|
6
|
+
htmlFor?: string;
|
|
7
|
+
};
|
|
8
|
+
/** Label for the radio button */
|
|
9
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-label').LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
isRequired?: boolean | undefined;
|
|
12
|
+
} & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
13
|
+
/** This is used to connect label and trigger. The connection is made automatically, but if you override the id in the trigger, you will need to provide the id here as well. */
|
|
14
|
+
htmlFor?: string | undefined;
|
|
15
|
+
} & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import { Label as Label$1 } from "../label/label.js";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { s as styles, rootClassName } from "./radio-group-root.js";
|
|
6
|
+
import { ItemContext } from "./radio-group-item.js";
|
|
7
|
+
const Label = React__default.forwardRef(
|
|
8
|
+
({ className, ...props }, forwardRef) => {
|
|
9
|
+
const classes = clsx([styles[`${rootClassName}__label`]], className);
|
|
10
|
+
const context = React__default.useContext(ItemContext);
|
|
11
|
+
const htmlFor = props.htmlFor || (context == null ? void 0 : context.id);
|
|
12
|
+
return /* @__PURE__ */ jsx(Label$1, { ...props, htmlFor, ref: forwardRef, className: classes });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
Label.displayName = "Label";
|
|
16
|
+
export {
|
|
17
|
+
Label
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const clsx = require("clsx");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const components_radioGroup_radioGroupRoot = require("./radio-group-root.cjs");
|
|
7
|
+
const ItemContext = React.createContext(void 0);
|
|
8
|
+
const Item = React.forwardRef(({ className, ...props }, forwardRef) => {
|
|
9
|
+
const classes = clsx([components_radioGroup_radioGroupRoot.styles[`${components_radioGroup_radioGroupRoot.rootClassName}__item`]], className);
|
|
10
|
+
const triggerRef = React.useRef(null);
|
|
11
|
+
const triggerId = `${React.useId()}-trigger`;
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ItemContext.Provider, { value: { triggerRef, id: triggerId }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, ref: forwardRef, className: classes }) });
|
|
13
|
+
});
|
|
14
|
+
Item.displayName = "Item";
|
|
15
|
+
exports.Item = Item;
|
|
16
|
+
exports.ItemContext = ItemContext;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type ItemProps = React.ComponentPropsWithoutRef<'div'>;
|
|
4
|
+
export declare const ItemContext: React.Context<{
|
|
5
|
+
triggerRef: React.RefObject<HTMLButtonElement>;
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
/** Item is used to group a radio button */
|
|
9
|
+
export declare const Item: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import React__default, { useRef } from "react";
|
|
4
|
+
import { s as styles, rootClassName } from "./radio-group-root.js";
|
|
5
|
+
const ItemContext = React__default.createContext(void 0);
|
|
6
|
+
const Item = React__default.forwardRef(({ className, ...props }, forwardRef) => {
|
|
7
|
+
const classes = clsx([styles[`${rootClassName}__item`]], className);
|
|
8
|
+
const triggerRef = useRef(null);
|
|
9
|
+
const triggerId = `${React__default.useId()}-trigger`;
|
|
10
|
+
return /* @__PURE__ */ jsx(ItemContext.Provider, { value: { triggerRef, id: triggerId }, children: /* @__PURE__ */ jsx("div", { ...props, ref: forwardRef, className: classes }) });
|
|
11
|
+
});
|
|
12
|
+
Item.displayName = "Item";
|
|
13
|
+
export {
|
|
14
|
+
Item,
|
|
15
|
+
ItemContext
|
|
16
|
+
};
|