@telia/teddy 0.7.42 → 0.7.44
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/{sprite.f19713f9-teddy.svg → sprite.44b293a1-teddy.svg} +8 -8
- package/dist/components/accordion/accordion-indicator.cjs +1 -1
- package/dist/components/accordion/accordion-indicator.js +1 -1
- package/dist/components/avatar/avatar-root.cjs +1 -1
- package/dist/components/avatar/avatar-root.d.ts +1 -1
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/badge/badge.cjs +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-link.cjs +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-link.js +1 -1
- package/dist/components/carousel/carousel-root.cjs +1 -1
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.cjs +1 -1
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-content.cjs +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-content.js +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.cjs +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.js +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.cjs +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.js +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-item.cjs +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-item.js +1 -1
- package/dist/components/chip/chip-indicator.cjs +1 -1
- package/dist/components/chip/chip-indicator.d.ts +1 -1
- package/dist/components/chip/chip-indicator.js +1 -1
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/dashboard-card/dashboard-card-avatar.d.ts +1 -1
- package/dist/components/dashboard-card/dashboard-card-root.cjs +1 -1
- package/dist/components/dashboard-card/dashboard-card-root.js +1 -1
- package/dist/components/dashed-button/dashed-button-root.cjs +4 -4
- package/dist/components/dashed-button/dashed-button-root.d.ts +7 -0
- package/dist/components/dashed-button/dashed-button-root.js +4 -4
- package/dist/components/date-picker/date-picker-input.cjs +1 -1
- package/dist/components/date-picker/date-picker-input.js +1 -1
- package/dist/components/date-picker/date-picker.cjs +1 -1
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/drawer/drawer-close.cjs +1 -1
- package/dist/components/drawer/drawer-close.js +1 -1
- package/dist/components/expandable-card/expandable-card-indicator.cjs +1 -1
- package/dist/components/expandable-card/expandable-card-indicator.js +1 -1
- package/dist/components/field-error-text/field-error-text.cjs +1 -1
- package/dist/components/field-error-text/field-error-text.js +1 -1
- package/dist/components/icon/icon.cjs +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon/utils.d.ts +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input/input-clear-button.cjs +1 -1
- package/dist/components/input/input-clear-button.js +1 -1
- package/dist/components/input/input-group.cjs +1 -1
- package/dist/components/input/input-group.js +1 -1
- package/dist/components/input/input-indicator.cjs +1 -1
- package/dist/components/input/input-indicator.js +1 -1
- package/dist/components/metric-meter/metric-meter.cjs +1 -1
- package/dist/components/metric-meter/metric-meter.js +1 -1
- package/dist/components/modal/modal-close.cjs +1 -1
- package/dist/components/modal/modal-close.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +1 -1
- package/dist/components/notabene/notabene-icon.cjs +1 -1
- package/dist/components/notabene/notabene-icon.d.ts +1 -1
- package/dist/components/notabene/notabene-icon.js +1 -1
- package/dist/components/notification/notification-dismiss.cjs +1 -1
- package/dist/components/notification/notification-dismiss.js +1 -1
- package/dist/components/notification/notification-icon.cjs +1 -1
- package/dist/components/notification/notification-icon.d.ts +1 -1
- package/dist/components/notification/notification-icon.js +1 -1
- package/dist/components/pagination/pagination-button.cjs +1 -1
- package/dist/components/pagination/pagination-button.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-item.js +1 -1
- package/dist/components/scroll-area/scroll-area-button.cjs +1 -1
- package/dist/components/scroll-area/scroll-area-button.js +1 -1
- package/dist/components/scroll-area/scroll-area-thumb.cjs +1 -1
- package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/select-content.cjs +1 -1
- package/dist/components/select/select-content.d.ts +1 -1
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-indicator.cjs +15 -2
- package/dist/components/select/select-indicator.js +15 -2
- package/dist/components/select/select-item.cjs +1 -1
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-root.cjs +17 -13
- package/dist/components/select/select-root.d.ts +5 -0
- package/dist/components/select/select-root.js +17 -13
- package/dist/components/select/select-viewport.cjs +19 -2
- package/dist/components/select/select-viewport.js +20 -4
- package/dist/components/shopping-cart/shopping-cart-disclaimer.cjs +1 -1
- package/dist/components/shopping-cart/shopping-cart-disclaimer.js +1 -1
- package/dist/components/shopping-cart/shopping-cart-item.cjs +1 -1
- package/dist/components/shopping-cart/shopping-cart-item.js +1 -1
- package/dist/components/shopping-cart/shopping-cart-payment.cjs +1 -1
- package/dist/components/shopping-cart/shopping-cart-payment.js +1 -1
- package/dist/components/step-indicator/step-indicator-step-element.cjs +1 -1
- package/dist/components/step-indicator/step-indicator-step-element.js +1 -1
- package/dist/components/step-indicator/step-indicator-step.cjs +1 -1
- package/dist/components/step-indicator/step-indicator-step.js +1 -1
- package/dist/components/textarea/textarea-clear-button.cjs +1 -1
- package/dist/components/textarea/textarea-clear-button.js +1 -1
- package/dist/components/textarea/textarea-group.cjs +1 -1
- package/dist/components/textarea/textarea-group.js +1 -1
- package/dist/components/textarea/textarea-indicator.cjs +1 -1
- package/dist/components/textarea/textarea-indicator.js +1 -1
- package/dist/components/toast/toast-root.cjs +1 -1
- package/dist/components/toast/toast-root.js +1 -1
- package/dist/components/toggle/toggle.cjs +1 -1
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggletip/toggletip-close.cjs +1 -1
- package/dist/components/toggletip/toggletip-close.js +1 -1
- package/dist/components/tooltip/tooltip-trigger.cjs +1 -1
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/top-row-buttons/top-row-buttons.cjs +1 -1
- package/dist/components/top-row-buttons/top-row-buttons.d.ts +1 -1
- package/dist/components/top-row-buttons/top-row-buttons.js +1 -1
- package/dist/components/video/video.cjs +1 -1
- package/dist/components/video/video.js +1 -1
- package/dist/icons/category.cjs +2 -2
- package/dist/icons/category.d.ts +5 -5
- package/dist/icons/category.js +2 -2
- package/dist/icons/name.cjs +2 -2
- package/dist/icons/name.d.ts +1 -1
- package/dist/icons/name.js +2 -2
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/style.css +73 -29
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Icon as PrimitiveIcon } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveIcon>>;
|
|
5
5
|
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "
|
|
6
|
+
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sidepanel-hide" | "sidepanel-show" | "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" | "visible" | "volume" | "zoom-out" | "zoom" | "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" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-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" | "summary" | "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" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "activity-level" | "add" | "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" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "spyware" | "split" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "alert-filled" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "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" | "close" | "grid-view" | "list-view" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view";
|
|
7
7
|
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
9
|
children?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import "../../assets/sprite.
|
|
4
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
5
5
|
import { Icon as Icon$1 } from "../icon/icon.js";
|
|
6
6
|
import { s as styles, rootClassName } from "./notabene-root.js";
|
|
7
7
|
const Icon = React__default.forwardRef(
|
|
@@ -5,7 +5,7 @@ const React = require("react");
|
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const CollapsiblePrimitive = require("@radix-ui/react-collapsible");
|
|
7
7
|
const components_button_button = require("../button/button.cjs");
|
|
8
|
-
require("../../assets/sprite.
|
|
8
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
9
9
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
10
10
|
const components_notification_notificationRoot = require("./notification-root.cjs");
|
|
11
11
|
function _interopNamespaceDefault(e) {
|
|
@@ -3,7 +3,7 @@ import React__default from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
5
5
|
import { Button } from "../button/button.js";
|
|
6
|
-
import "../../assets/sprite.
|
|
6
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
7
7
|
import { Icon } from "../icon/icon.js";
|
|
8
8
|
import { s as styles, rootClassName } from "./notification-root.js";
|
|
9
9
|
const Dismiss = React__default.forwardRef(
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
require("../../assets/sprite.
|
|
5
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
6
6
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
7
7
|
const components_notification_notificationRoot = require("./notification-root.cjs");
|
|
8
8
|
const clsx = require("clsx");
|
|
@@ -3,7 +3,7 @@ import { Icon as IconPrimitives } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof IconPrimitives>>;
|
|
5
5
|
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "
|
|
6
|
+
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sidepanel-hide" | "sidepanel-show" | "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" | "visible" | "volume" | "zoom-out" | "zoom" | "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" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-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" | "summary" | "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" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "activity-level" | "add" | "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" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "spyware" | "split" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "alert-filled" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "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" | "close" | "grid-view" | "list-view" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view";
|
|
7
7
|
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
9
|
children?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import "../../assets/sprite.
|
|
3
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
4
4
|
import { Icon as Icon$1 } from "../icon/icon.js";
|
|
5
5
|
import { s as styles, rootClassName, NotificationContext } from "./notification-root.js";
|
|
6
6
|
import clsx from "clsx";
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const components_button_button = require("../button/button.cjs");
|
|
7
|
-
require("../../assets/sprite.
|
|
7
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
8
8
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
9
9
|
const components_text_text = require("../text/text.cjs");
|
|
10
10
|
const pagination_module = require("../../pagination.module-cJw-49kO.cjs");
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { Button as Button$1 } from "../button/button.js";
|
|
5
|
-
import "../../assets/sprite.
|
|
5
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
6
6
|
import { Icon } from "../icon/icon.js";
|
|
7
7
|
import { Text } from "../text/text.js";
|
|
8
8
|
import { s as styles } from "../../pagination.module-BZYtfhKG.js";
|
|
@@ -38,7 +38,7 @@ require("../tabs/index.cjs");
|
|
|
38
38
|
require("../drawer/index.cjs");
|
|
39
39
|
require("../image/image.cjs");
|
|
40
40
|
require("../chip/index.cjs");
|
|
41
|
-
require("../../assets/sprite.
|
|
41
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
42
42
|
require("../notification/index.cjs");
|
|
43
43
|
require("../radio-group/index.cjs");
|
|
44
44
|
require("../box/box.cjs");
|
|
@@ -36,7 +36,7 @@ import "../tabs/index.js";
|
|
|
36
36
|
import "../drawer/index.js";
|
|
37
37
|
import "../image/image.js";
|
|
38
38
|
import "../chip/index.js";
|
|
39
|
-
import "../../assets/sprite.
|
|
39
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
40
40
|
import "../notification/index.js";
|
|
41
41
|
import "../radio-group/index.js";
|
|
42
42
|
import "../box/box.js";
|
|
@@ -39,7 +39,7 @@ require("../tabs/index.cjs");
|
|
|
39
39
|
require("../drawer/index.cjs");
|
|
40
40
|
require("../image/image.cjs");
|
|
41
41
|
require("../chip/index.cjs");
|
|
42
|
-
require("../../assets/sprite.
|
|
42
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
43
43
|
require("../notification/index.cjs");
|
|
44
44
|
require("../radio-group/index.cjs");
|
|
45
45
|
require("../box/box.cjs");
|
|
@@ -37,7 +37,7 @@ import "../tabs/index.js";
|
|
|
37
37
|
import "../drawer/index.js";
|
|
38
38
|
import "../image/image.js";
|
|
39
39
|
import "../chip/index.js";
|
|
40
|
-
import "../../assets/sprite.
|
|
40
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
41
41
|
import "../notification/index.js";
|
|
42
42
|
import "../radio-group/index.js";
|
|
43
43
|
import "../box/box.js";
|
|
@@ -39,7 +39,7 @@ require("../tabs/index.cjs");
|
|
|
39
39
|
require("../drawer/index.cjs");
|
|
40
40
|
require("../image/image.cjs");
|
|
41
41
|
require("../chip/index.cjs");
|
|
42
|
-
require("../../assets/sprite.
|
|
42
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
43
43
|
require("../notification/index.cjs");
|
|
44
44
|
require("../radio-group/index.cjs");
|
|
45
45
|
require("../box/box.cjs");
|
|
@@ -37,7 +37,7 @@ import "../tabs/index.js";
|
|
|
37
37
|
import "../drawer/index.js";
|
|
38
38
|
import "../image/image.js";
|
|
39
39
|
import "../chip/index.js";
|
|
40
|
-
import "../../assets/sprite.
|
|
40
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
41
41
|
import "../notification/index.js";
|
|
42
42
|
import "../radio-group/index.js";
|
|
43
43
|
import "../box/box.js";
|
|
@@ -6,6 +6,6 @@ require("clsx");
|
|
|
6
6
|
const components_scrollArea_scrollAreaThumb = require("./scroll-area-thumb.cjs");
|
|
7
7
|
require("../button/button.cjs");
|
|
8
8
|
require("../../utils/composeEventHandlers.cjs");
|
|
9
|
-
require("../../assets/sprite.
|
|
9
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
10
10
|
require("../icon/icon.cjs");
|
|
11
11
|
exports.Button = components_scrollArea_scrollAreaThumb.Button$1;
|
|
@@ -4,7 +4,7 @@ import "clsx";
|
|
|
4
4
|
import { B } from "./scroll-area-thumb.js";
|
|
5
5
|
import "../button/button.js";
|
|
6
6
|
import "../../utils/composeEventHandlers.js";
|
|
7
|
-
import "../../assets/sprite.
|
|
7
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
8
8
|
import "../icon/icon.js";
|
|
9
9
|
export {
|
|
10
10
|
B as Button
|
|
@@ -6,7 +6,7 @@ const clsx = require("clsx");
|
|
|
6
6
|
const ScrollAreaPrimitive = require("@radix-ui/react-scroll-area");
|
|
7
7
|
const components_button_button = require("../button/button.cjs");
|
|
8
8
|
const utils_composeEventHandlers = require("../../utils/composeEventHandlers.cjs");
|
|
9
|
-
require("../../assets/sprite.
|
|
9
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
10
10
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
11
11
|
function _interopNamespaceDefault(e) {
|
|
12
12
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -4,7 +4,7 @@ import clsx from "clsx";
|
|
|
4
4
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
5
5
|
import { Button as Button$1 } from "../button/button.js";
|
|
6
6
|
import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
|
|
7
|
-
import "../../assets/sprite.
|
|
7
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
8
8
|
import { Icon } from "../icon/icon.js";
|
|
9
9
|
const styles = {
|
|
10
10
|
"teddy-scroll-area": "_teddy-scroll-area_1r6mf_1",
|
|
@@ -22,6 +22,7 @@ export declare const Select: import('react').ForwardRefExoticComponent<import('@
|
|
|
22
22
|
className?: string | undefined;
|
|
23
23
|
frameClassName?: string | undefined;
|
|
24
24
|
options: string[];
|
|
25
|
+
maxHeight?: string | number | undefined;
|
|
25
26
|
} & import('react').RefAttributes<never>> & {
|
|
26
27
|
Indicator: import('react').ForwardRefExoticComponent<Omit<Partial<import('..').IconProps>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
27
28
|
Item: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-select').SelectItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -22,7 +22,7 @@ function _interopNamespaceDefault(e) {
|
|
|
22
22
|
}
|
|
23
23
|
const RadixSelect__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixSelect);
|
|
24
24
|
const Content = React.forwardRef(
|
|
25
|
-
(
|
|
25
|
+
(props, forwardRef) => {
|
|
26
26
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
27
27
|
RadixSelect__namespace.Content,
|
|
28
28
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
import * as RadixSelect from '@radix-ui/react-select';
|
|
4
|
-
export type ContentProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Content
|
|
4
|
+
export type ContentProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Content>;
|
|
5
5
|
export declare const Content: React.ForwardRefExoticComponent<Omit<RadixSelect.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,7 +3,7 @@ import React__default from "react";
|
|
|
3
3
|
import * as RadixSelect from "@radix-ui/react-select";
|
|
4
4
|
import { s as styles, rootClassName } from "./select-root.js";
|
|
5
5
|
const Content = React__default.forwardRef(
|
|
6
|
-
(
|
|
6
|
+
(props, forwardRef) => {
|
|
7
7
|
return /* @__PURE__ */ jsx(
|
|
8
8
|
RadixSelect.Content,
|
|
9
9
|
{
|
|
@@ -2,12 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
require("../../assets/sprite.
|
|
5
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
6
6
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
7
|
+
const clsx = require("clsx");
|
|
8
|
+
const components_select_selectRoot = require("./select-root.cjs");
|
|
7
9
|
const Indicator = React.forwardRef(
|
|
8
10
|
({ className, children, name, ...props }, forwardRef) => {
|
|
9
11
|
const icon = name === "chevron-up" ? "chevron-up" : "chevron-down";
|
|
10
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
|
+
components_icon_icon.Icon,
|
|
14
|
+
{
|
|
15
|
+
"aria-hidden": true,
|
|
16
|
+
name: icon,
|
|
17
|
+
size: props.size || "sm",
|
|
18
|
+
...props,
|
|
19
|
+
ref: forwardRef,
|
|
20
|
+
className: clsx.clsx(components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__icon`], className),
|
|
21
|
+
children
|
|
22
|
+
}
|
|
23
|
+
);
|
|
11
24
|
}
|
|
12
25
|
);
|
|
13
26
|
Indicator.displayName = "Indicator";
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import "../../assets/sprite.
|
|
3
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
4
4
|
import { Icon } from "../icon/icon.js";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { s as styles, rootClassName } from "./select-root.js";
|
|
5
7
|
const Indicator = React__default.forwardRef(
|
|
6
8
|
({ className, children, name, ...props }, forwardRef) => {
|
|
7
9
|
const icon = name === "chevron-up" ? "chevron-up" : "chevron-down";
|
|
8
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
Icon,
|
|
12
|
+
{
|
|
13
|
+
"aria-hidden": true,
|
|
14
|
+
name: icon,
|
|
15
|
+
size: props.size || "sm",
|
|
16
|
+
...props,
|
|
17
|
+
ref: forwardRef,
|
|
18
|
+
className: clsx(styles[`${rootClassName}__icon`], className),
|
|
19
|
+
children
|
|
20
|
+
}
|
|
21
|
+
);
|
|
9
22
|
}
|
|
10
23
|
);
|
|
11
24
|
Indicator.displayName = "Indicator";
|
|
@@ -26,7 +26,7 @@ const Item = React.forwardRef(
|
|
|
26
26
|
({ children, ...props }, forwardRef) => {
|
|
27
27
|
return /* @__PURE__ */ jsxRuntime.jsxs(RadixSelect__namespace.Item, { className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__item`], ...props, ref: forwardRef, children: [
|
|
28
28
|
/* @__PURE__ */ jsxRuntime.jsx(RadixSelect__namespace.ItemText, { children }),
|
|
29
|
-
/* @__PURE__ */ jsxRuntime.jsx(RadixSelect__namespace.ItemIndicator, { className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__item-indicator`], children: /* @__PURE__ */ jsxRuntime.jsx(components_select_selectIndicator.Indicator, { name: "chevron-down" }) })
|
|
29
|
+
/* @__PURE__ */ jsxRuntime.jsx(RadixSelect__namespace.ItemIndicator, { className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__item-indicator`], children: /* @__PURE__ */ jsxRuntime.jsx(components_select_selectIndicator.Indicator, { name: "chevron-down", size: "xs" }) })
|
|
30
30
|
] });
|
|
31
31
|
}
|
|
32
32
|
);
|
|
@@ -7,7 +7,7 @@ const Item = React__default.forwardRef(
|
|
|
7
7
|
({ children, ...props }, forwardRef) => {
|
|
8
8
|
return /* @__PURE__ */ jsxs(RadixSelect.Item, { className: styles[`${rootClassName}__item`], ...props, ref: forwardRef, children: [
|
|
9
9
|
/* @__PURE__ */ jsx(RadixSelect.ItemText, { children }),
|
|
10
|
-
/* @__PURE__ */ jsx(RadixSelect.ItemIndicator, { className: styles[`${rootClassName}__item-indicator`], children: /* @__PURE__ */ jsx(Indicator, { name: "chevron-down" }) })
|
|
10
|
+
/* @__PURE__ */ jsx(RadixSelect.ItemIndicator, { className: styles[`${rootClassName}__item-indicator`], children: /* @__PURE__ */ jsx(Indicator, { name: "chevron-down", size: "xs" }) })
|
|
11
11
|
] });
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -25,18 +25,21 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
}
|
|
26
26
|
const RadixSelect__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixSelect);
|
|
27
27
|
const styles = {
|
|
28
|
-
"teddy-select": "_teddy-
|
|
29
|
-
"teddy-select__trigger": "_teddy-
|
|
30
|
-
"teddy-
|
|
31
|
-
"teddy-select__trigger--
|
|
32
|
-
"teddy-select__trigger--
|
|
33
|
-
"teddy-
|
|
34
|
-
"teddy-select__content": "_teddy-
|
|
35
|
-
"teddy-
|
|
36
|
-
"teddy-select__item": "_teddy-
|
|
37
|
-
"teddy-
|
|
38
|
-
"teddy-
|
|
39
|
-
"teddy-
|
|
28
|
+
"teddy-select": "_teddy-select_d7s5u_1",
|
|
29
|
+
"teddy-select__trigger": "_teddy-select__trigger_d7s5u_12",
|
|
30
|
+
"teddy-select__icon": "_teddy-select__icon_d7s5u_30",
|
|
31
|
+
"teddy-select__trigger--error": "_teddy-select__trigger--error_d7s5u_44",
|
|
32
|
+
"teddy-select__trigger--disabled": "_teddy-select__trigger--disabled_d7s5u_48",
|
|
33
|
+
"teddy-select__trigger--readonly": "_teddy-select__trigger--readonly_d7s5u_54",
|
|
34
|
+
"teddy-select__content": "_teddy-select__content_d7s5u_62",
|
|
35
|
+
"teddy-select__item": "_teddy-select__item_d7s5u_73",
|
|
36
|
+
"teddy-select__item-indicator": "_teddy-select__item-indicator_d7s5u_94",
|
|
37
|
+
"teddy-select__separator": "_teddy-select__separator_d7s5u_105",
|
|
38
|
+
"teddy-select__label": "_teddy-select__label_d7s5u_110",
|
|
39
|
+
"teddy-select__scroll-area-root": "_teddy-select__scroll-area-root_d7s5u_118",
|
|
40
|
+
"teddy-select__scroll-area-viewport": "_teddy-select__scroll-area-viewport_d7s5u_122",
|
|
41
|
+
"teddy-select__scroll-area-scrollbar": "_teddy-select__scroll-area-scrollbar_d7s5u_131",
|
|
42
|
+
"teddy-select__scroll-area-thumb": "_teddy-select__scroll-area-thumb_d7s5u_137"
|
|
40
43
|
};
|
|
41
44
|
const SelectContext = React.createContext({
|
|
42
45
|
isDirty: false,
|
|
@@ -58,6 +61,7 @@ const Root = React.forwardRef(
|
|
|
58
61
|
validationState,
|
|
59
62
|
errorText,
|
|
60
63
|
options,
|
|
64
|
+
maxHeight,
|
|
61
65
|
...props
|
|
62
66
|
}, forwardRef) => {
|
|
63
67
|
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
@@ -70,7 +74,7 @@ const Root = React.forwardRef(
|
|
|
70
74
|
return value2;
|
|
71
75
|
};
|
|
72
76
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...props, ref: forwardRef, className: classes, children: [
|
|
73
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectContext.Provider, { value: { isDirty, setIsDirty, inputRef, options }, children: /* @__PURE__ */ jsxRuntime.jsxs(RadixSelect__namespace.Root, { ...props, onValueChange: handleValueChange, value: value || currentValue, children: [
|
|
77
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectContext.Provider, { value: { isDirty, setIsDirty, inputRef, options, maxHeight }, children: /* @__PURE__ */ jsxRuntime.jsxs(RadixSelect__namespace.Root, { ...props, onValueChange: handleValueChange, value: value || currentValue, children: [
|
|
74
78
|
label && /* @__PURE__ */ jsxRuntime.jsx(components_label_label.Label, { disabled, children: label }),
|
|
75
79
|
children,
|
|
76
80
|
helperText && /* @__PURE__ */ jsxRuntime.jsx(components_helperText_helperText.HelperText, { children: helperText }),
|
|
@@ -11,6 +11,7 @@ type SelectContextValue = {
|
|
|
11
11
|
validationState?: ValidationState;
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
options: string[];
|
|
14
|
+
maxHeight?: string | number;
|
|
14
15
|
};
|
|
15
16
|
export declare const SelectContext: React.Context<SelectContextValue>;
|
|
16
17
|
export type RootProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Root> & {
|
|
@@ -28,6 +29,8 @@ export type RootProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Root>
|
|
|
28
29
|
className?: string;
|
|
29
30
|
frameClassName?: string;
|
|
30
31
|
options: string[];
|
|
32
|
+
/** Maximum height of the dropdown. Defaults to the available viewport height. */
|
|
33
|
+
maxHeight?: string | number;
|
|
31
34
|
};
|
|
32
35
|
export declare const rootClassName = "teddy-select";
|
|
33
36
|
export declare const Root: React.ForwardRefExoticComponent<RadixSelect.SelectProps & {
|
|
@@ -45,5 +48,7 @@ export declare const Root: React.ForwardRefExoticComponent<RadixSelect.SelectPro
|
|
|
45
48
|
className?: string | undefined;
|
|
46
49
|
frameClassName?: string | undefined;
|
|
47
50
|
options: string[];
|
|
51
|
+
/** Maximum height of the dropdown. Defaults to the available viewport height. */
|
|
52
|
+
maxHeight?: string | number | undefined;
|
|
48
53
|
} & React.RefAttributes<never>>;
|
|
49
54
|
export {};
|
|
@@ -6,18 +6,21 @@ import { HelperText } from "../helper-text/helper-text.js";
|
|
|
6
6
|
import { FieldErrorText } from "../field-error-text/field-error-text.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
const styles = {
|
|
9
|
-
"teddy-select": "_teddy-
|
|
10
|
-
"teddy-select__trigger": "_teddy-
|
|
11
|
-
"teddy-
|
|
12
|
-
"teddy-select__trigger--
|
|
13
|
-
"teddy-select__trigger--
|
|
14
|
-
"teddy-
|
|
15
|
-
"teddy-select__content": "_teddy-
|
|
16
|
-
"teddy-
|
|
17
|
-
"teddy-select__item": "_teddy-
|
|
18
|
-
"teddy-
|
|
19
|
-
"teddy-
|
|
20
|
-
"teddy-
|
|
9
|
+
"teddy-select": "_teddy-select_d7s5u_1",
|
|
10
|
+
"teddy-select__trigger": "_teddy-select__trigger_d7s5u_12",
|
|
11
|
+
"teddy-select__icon": "_teddy-select__icon_d7s5u_30",
|
|
12
|
+
"teddy-select__trigger--error": "_teddy-select__trigger--error_d7s5u_44",
|
|
13
|
+
"teddy-select__trigger--disabled": "_teddy-select__trigger--disabled_d7s5u_48",
|
|
14
|
+
"teddy-select__trigger--readonly": "_teddy-select__trigger--readonly_d7s5u_54",
|
|
15
|
+
"teddy-select__content": "_teddy-select__content_d7s5u_62",
|
|
16
|
+
"teddy-select__item": "_teddy-select__item_d7s5u_73",
|
|
17
|
+
"teddy-select__item-indicator": "_teddy-select__item-indicator_d7s5u_94",
|
|
18
|
+
"teddy-select__separator": "_teddy-select__separator_d7s5u_105",
|
|
19
|
+
"teddy-select__label": "_teddy-select__label_d7s5u_110",
|
|
20
|
+
"teddy-select__scroll-area-root": "_teddy-select__scroll-area-root_d7s5u_118",
|
|
21
|
+
"teddy-select__scroll-area-viewport": "_teddy-select__scroll-area-viewport_d7s5u_122",
|
|
22
|
+
"teddy-select__scroll-area-scrollbar": "_teddy-select__scroll-area-scrollbar_d7s5u_131",
|
|
23
|
+
"teddy-select__scroll-area-thumb": "_teddy-select__scroll-area-thumb_d7s5u_137"
|
|
21
24
|
};
|
|
22
25
|
const SelectContext = React__default.createContext({
|
|
23
26
|
isDirty: false,
|
|
@@ -39,6 +42,7 @@ const Root = React__default.forwardRef(
|
|
|
39
42
|
validationState,
|
|
40
43
|
errorText,
|
|
41
44
|
options,
|
|
45
|
+
maxHeight,
|
|
42
46
|
...props
|
|
43
47
|
}, forwardRef) => {
|
|
44
48
|
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
@@ -51,7 +55,7 @@ const Root = React__default.forwardRef(
|
|
|
51
55
|
return value2;
|
|
52
56
|
};
|
|
53
57
|
return /* @__PURE__ */ jsxs("div", { ...props, ref: forwardRef, className: classes, children: [
|
|
54
|
-
/* @__PURE__ */ jsx(SelectContext.Provider, { value: { isDirty, setIsDirty, inputRef, options }, children: /* @__PURE__ */ jsxs(RadixSelect.Root, { ...props, onValueChange: handleValueChange, value: value || currentValue, children: [
|
|
58
|
+
/* @__PURE__ */ jsx(SelectContext.Provider, { value: { isDirty, setIsDirty, inputRef, options, maxHeight }, children: /* @__PURE__ */ jsxs(RadixSelect.Root, { ...props, onValueChange: handleValueChange, value: value || currentValue, children: [
|
|
55
59
|
label && /* @__PURE__ */ jsx(Label, { disabled, children: label }),
|
|
56
60
|
children,
|
|
57
61
|
helperText && /* @__PURE__ */ jsx(HelperText, { children: helperText }),
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const RadixSelect = require("@radix-ui/react-select");
|
|
6
|
+
const ScrollAreaPrimitive = require("@radix-ui/react-scroll-area");
|
|
6
7
|
const components_select_selectRoot = require("./select-root.cjs");
|
|
7
8
|
function _interopNamespaceDefault(e) {
|
|
8
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -21,9 +22,25 @@ function _interopNamespaceDefault(e) {
|
|
|
21
22
|
return Object.freeze(n);
|
|
22
23
|
}
|
|
23
24
|
const RadixSelect__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixSelect);
|
|
25
|
+
const ScrollAreaPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ScrollAreaPrimitive);
|
|
24
26
|
const Viewport = React.forwardRef(
|
|
25
|
-
({ ...props }, forwardRef) => {
|
|
26
|
-
|
|
27
|
+
({ children, style, ...props }, forwardRef) => {
|
|
28
|
+
const { maxHeight: contextMaxHeight } = React.useContext(components_select_selectRoot.SelectContext);
|
|
29
|
+
const { maxHeight: styleMaxHeight, ...restStyle } = style || {};
|
|
30
|
+
const maxHeight = contextMaxHeight ?? styleMaxHeight;
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ScrollAreaPrimitive__namespace.Root, { type: "auto", className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__scroll-area-root`], children: [
|
|
32
|
+
/* @__PURE__ */ jsxRuntime.jsx(RadixSelect__namespace.Viewport, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
+
ScrollAreaPrimitive__namespace.Viewport,
|
|
34
|
+
{
|
|
35
|
+
...props,
|
|
36
|
+
ref: forwardRef,
|
|
37
|
+
className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__scroll-area-viewport`],
|
|
38
|
+
style: { ...restStyle, ...maxHeight != null ? { maxHeight } : {} },
|
|
39
|
+
children
|
|
40
|
+
}
|
|
41
|
+
) }),
|
|
42
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Scrollbar, { orientation: "vertical", className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__scroll-area-scrollbar`], children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Thumb, { className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__scroll-area-thumb`] }) })
|
|
43
|
+
] });
|
|
27
44
|
}
|
|
28
45
|
);
|
|
29
46
|
Viewport.displayName = "Select.Viewport";
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import * as RadixSelect from "@radix-ui/react-select";
|
|
4
|
-
import
|
|
4
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
5
|
+
import { SelectContext, s as styles, rootClassName } from "./select-root.js";
|
|
5
6
|
const Viewport = React__default.forwardRef(
|
|
6
|
-
({ ...props }, forwardRef) => {
|
|
7
|
-
|
|
7
|
+
({ children, style, ...props }, forwardRef) => {
|
|
8
|
+
const { maxHeight: contextMaxHeight } = React__default.useContext(SelectContext);
|
|
9
|
+
const { maxHeight: styleMaxHeight, ...restStyle } = style || {};
|
|
10
|
+
const maxHeight = contextMaxHeight ?? styleMaxHeight;
|
|
11
|
+
return /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, { type: "auto", className: styles[`${rootClassName}__scroll-area-root`], children: [
|
|
12
|
+
/* @__PURE__ */ jsx(RadixSelect.Viewport, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
13
|
+
ScrollAreaPrimitive.Viewport,
|
|
14
|
+
{
|
|
15
|
+
...props,
|
|
16
|
+
ref: forwardRef,
|
|
17
|
+
className: styles[`${rootClassName}__scroll-area-viewport`],
|
|
18
|
+
style: { ...restStyle, ...maxHeight != null ? { maxHeight } : {} },
|
|
19
|
+
children
|
|
20
|
+
}
|
|
21
|
+
) }),
|
|
22
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Scrollbar, { orientation: "vertical", className: styles[`${rootClassName}__scroll-area-scrollbar`], children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.Thumb, { className: styles[`${rootClassName}__scroll-area-thumb`] }) })
|
|
23
|
+
] });
|
|
8
24
|
}
|
|
9
25
|
);
|
|
10
26
|
Viewport.displayName = "Select.Viewport";
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
|
-
require("../../assets/sprite.
|
|
6
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
7
7
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
8
8
|
const components_collapsible_index = require("../collapsible/index.cjs");
|
|
9
9
|
const singleDisclaimer = "_singleDisclaimer_1995d_1";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
|
-
import "../../assets/sprite.
|
|
4
|
+
import "../../assets/sprite.44b293a1-teddy.svg";
|
|
5
5
|
import { Icon } from "../icon/icon.js";
|
|
6
6
|
import { Collapsible } from "../collapsible/index.js";
|
|
7
7
|
const singleDisclaimer = "_singleDisclaimer_1995d_1";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const clsx = require("clsx");
|
|
5
|
-
require("../../assets/sprite.
|
|
5
|
+
require("../../assets/sprite.44b293a1-teddy.svg");
|
|
6
6
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
7
7
|
const components_text_text = require("../text/text.cjs");
|
|
8
8
|
const components_link_link = require("../link/link.cjs");
|