mosuk-ui 1.0.2 → 1.0.3
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/components/actions/button/(status)/component/component.interface.d.ts +1 -1
- package/components/actions/button/component/component.module.css +1 -1
- package/components/actions/button/skeleton/component.module.css +7 -11
- package/components/actions/input/(mask)/(phone)/component/component.interface.d.ts +6 -0
- package/components/actions/input/(mask)/(phone)/component/index.d.ts +2 -2
- package/components/actions/input/(mask)/(phone)/component/index.js +2 -4
- package/components/actions/input/(mask)/component/component.d.ts +2 -2
- package/components/actions/input/(mask)/component/component.interface.d.ts +5 -5
- package/components/actions/input/(mask)/component/component.js +3 -2
- package/components/actions/toggle/component/button/component.props.d.ts +1 -1
- package/components/actions/toggle/component/component.js +1 -1
- package/components/actions/toggle/component/component.module.css +5 -4
- package/components/actions/toggle/component/indicator/component.js +19 -6
- package/components/actions/toggle/component/providers/context/context.interface.d.ts +1 -0
- package/components/actions/toggle/component/providers/provider.d.ts +1 -1
- package/components/actions/toggle/component/providers/provider.interface.d.ts +2 -1
- package/components/actions/toggle/component/providers/provider.js +9 -2
- package/components/actions/toggle/skeleton/button/component.d.ts +3 -0
- package/components/actions/toggle/skeleton/button/component.js +31 -0
- package/components/{overlays/dialogs/dialog/component/dialog/body/component.interface.d.ts → actions/toggle/skeleton/button/component.props.d.ts} +1 -1
- package/components/actions/toggle/skeleton/component.d.ts +3 -0
- package/components/{texts/h2/component/text → actions/toggle/skeleton}/component.js +4 -4
- package/components/actions/toggle/skeleton/component.module.css +51 -0
- package/components/{texts/h2/component/text/component.interface.d.ts → actions/toggle/skeleton/component.props.d.ts} +1 -1
- package/components/actions/toggle/skeleton/index.d.ts +13 -0
- package/components/actions/toggle/skeleton/index.js +5 -0
- package/components/collections/accordion/component/component.interface.d.ts +1 -1
- package/components/collections/accordion/component/component.js +1 -1
- package/components/collections/accordion/component/component.module.css +0 -21
- package/components/collections/accordion/component/index.d.ts +0 -6
- package/components/collections/accordion/component/index.js +0 -2
- package/components/collections/accordion/component/item/component.interface.d.ts +1 -1
- package/components/collections/accordion/component/item/component.js +1 -1
- package/components/collections/accordion/component/item/content/component.interface.d.ts +1 -1
- package/components/collections/accordion/component/item/content/component.js +1 -1
- package/components/collections/accordion/component/item/header/component.interface.d.ts +1 -1
- package/components/collections/accordion/component/item/header/component.js +1 -1
- package/components/collections/accordion/component/item/header/content/component.interface.d.ts +1 -1
- package/components/collections/accordion/component/item/header/content/component.js +1 -1
- package/components/collections/accordion/skeleton/component.js +1 -3
- package/components/collections/breadcrumbs/component/component.js +18 -3
- package/components/collections/tabs/horizontal/component/component.interface.d.ts +1 -1
- package/components/collections/tabs/horizontal/component/component.js +1 -1
- package/components/collections/tabs/horizontal/component/content/component.interface.d.ts +1 -1
- package/components/collections/tabs/horizontal/component/content/component.js +1 -1
- package/components/collections/tabs/horizontal/component/head/component.d.ts +1 -1
- package/components/collections/tabs/horizontal/component/head/component.interface.d.ts +1 -1
- package/components/collections/tabs/horizontal/component/head/component.js +1 -1
- package/components/collections/tabs/horizontal/component/head/indicator/component.interface.d.ts +1 -1
- package/components/collections/tabs/horizontal/component/head/indicator/component.js +1 -1
- package/components/collections/tabs/horizontal/component/head/tab/component.interface.d.ts +1 -1
- package/components/collections/tabs/horizontal/component/head/tab/component.js +1 -1
- package/components/collections/tabs/horizontal/component/index.d.ts +1 -1
- package/components/collections/tabs/vertical/component/component.interface.d.ts +1 -1
- package/components/collections/tabs/vertical/component/component.js +1 -1
- package/components/collections/tabs/vertical/component/content/component.interface.d.ts +1 -1
- package/components/collections/tabs/vertical/component/content/component.js +1 -1
- package/components/collections/tabs/vertical/component/head/component.d.ts +1 -1
- package/components/collections/tabs/vertical/component/head/component.interface.d.ts +1 -1
- package/components/collections/tabs/vertical/component/head/component.js +1 -1
- package/components/collections/tabs/vertical/component/head/indicator/component.interface.d.ts +1 -1
- package/components/collections/tabs/vertical/component/head/indicator/component.js +1 -1
- package/components/collections/tabs/vertical/component/head/tab/component.interface.d.ts +1 -1
- package/components/collections/tabs/vertical/component/head/tab/component.js +1 -1
- package/components/collections/tabs/vertical/component/index.d.ts +1 -1
- package/components/containers/grid/component/component.d.ts +2 -2
- package/components/containers/grid/component/component.interface.d.ts +5 -3
- package/components/containers/grid/component/component.js +4 -7
- package/components/containers/section/component/component.module.css +2 -0
- package/components/display/image/(images)/component/component.js +2 -11
- package/components/display/image/component/image/component.js +1 -1
- package/components/integrations/tbank/terminal/skeleton/component.js +4 -8
- package/components/integrations/yandex/maps/component/component.d.ts +2 -2
- package/components/integrations/yandex/maps/component/component.interface.d.ts +4 -2
- package/components/integrations/yandex/maps/component/component.js +11 -13
- package/components/integrations/yandex/maps/component/component.module.css +19 -1
- package/components/integrations/yandex/maps/component/controls/zoom/component.d.ts +3 -0
- package/components/integrations/yandex/maps/component/controls/zoom/component.interface.d.ts +3 -0
- package/components/integrations/yandex/maps/component/controls/zoom/component.js +22 -0
- package/components/integrations/yandex/maps/component/controls/zoom/minus/component.d.ts +3 -0
- package/components/integrations/yandex/maps/component/controls/zoom/minus/component.interface.d.ts +3 -0
- package/components/integrations/yandex/maps/component/controls/zoom/minus/component.js +11 -0
- package/components/integrations/yandex/maps/component/controls/zoom/plus/component.d.ts +3 -0
- package/components/integrations/yandex/maps/component/controls/zoom/plus/component.interface.d.ts +3 -0
- package/components/integrations/yandex/maps/component/controls/zoom/plus/component.js +11 -0
- package/components/integrations/yandex/maps/component/default/features/layer/component.d.ts +3 -0
- package/components/integrations/yandex/maps/component/default/features/layer/component.interface.d.ts +3 -0
- package/components/integrations/yandex/maps/component/{map/default_features_layer → default/features/layer}/component.js +3 -3
- package/components/integrations/yandex/maps/component/default/scheme/layer/component.d.ts +3 -0
- package/components/integrations/yandex/maps/component/default/scheme/layer/component.interface.d.ts +3 -0
- package/components/integrations/yandex/maps/component/{map/default_scheme_layer → default/scheme/layer}/component.js +3 -3
- package/components/integrations/yandex/maps/component/feature/component.d.ts +3 -0
- package/components/integrations/yandex/maps/component/{map/feature → feature}/component.interface.d.ts +1 -1
- package/components/integrations/yandex/maps/component/{map/feature → feature}/component.js +3 -3
- package/components/integrations/yandex/maps/component/index.d.ts +58 -31
- package/components/integrations/yandex/maps/component/index.js +24 -13
- package/components/integrations/yandex/maps/component/marker/component.d.ts +3 -0
- package/components/integrations/yandex/maps/component/{map/marker → marker}/component.interface.d.ts +1 -1
- package/components/integrations/yandex/maps/component/{map/marker → marker}/component.js +3 -3
- package/components/integrations/yandex/maps/component/zoom/context.d.ts +2 -0
- package/components/integrations/yandex/maps/component/zoom/context.interface.d.ts +7 -0
- package/components/integrations/yandex/maps/component/zoom/context.js +2 -0
- package/components/integrations/yandex/maps/skeleton/component.d.ts +3 -3
- package/components/integrations/yandex/maps/skeleton/component.interface.d.ts +5 -3
- package/components/integrations/yandex/maps/skeleton/component.js +5 -3
- package/components/integrations/yandex/maps/skeleton/component.module.css +7 -6
- package/components/integrations/yandex/maps/skeleton/default/scheme/layer/component.d.ts +3 -0
- package/components/integrations/yandex/maps/skeleton/default/scheme/layer/component.image.d.ts +2 -0
- package/components/integrations/yandex/maps/skeleton/default/scheme/layer/component.image.js +2 -0
- package/components/integrations/yandex/maps/skeleton/default/scheme/layer/component.interface.d.ts +5 -0
- package/components/integrations/yandex/maps/skeleton/default/scheme/layer/component.js +39 -0
- package/components/integrations/yandex/maps/skeleton/index.d.ts +18 -10
- package/components/integrations/yandex/maps/skeleton/index.js +8 -4
- package/components/overlays/alert/component/close/component.interface.d.ts +1 -1
- package/components/overlays/alert/component/close/component.js +1 -1
- package/components/overlays/alert/component/component.interface.d.ts +1 -1
- package/components/overlays/alert/component/component.js +1 -1
- package/components/overlays/dialog/component/close/component.d.ts +3 -0
- package/components/overlays/dialog/component/close/component.interface.d.ts +3 -0
- package/components/{texts/p/component/icon → overlays/dialog/component/close}/component.js +3 -4
- package/components/overlays/dialog/component/component.d.ts +3 -0
- package/components/overlays/dialog/component/component.interface.d.ts +3 -0
- package/components/overlays/{dialogs/dialog/(images)/dialog/images/image → dialog/component}/component.js +3 -3
- package/components/overlays/dialog/component/component.module.css +83 -0
- package/components/overlays/dialog/component/index.d.ts +52 -0
- package/components/overlays/dialog/component/index.js +20 -0
- package/components/overlays/dialog/component/open/component.d.ts +3 -0
- package/components/overlays/dialog/component/open/component.interface.d.ts +3 -0
- package/components/{texts/a/component/icon → overlays/dialog/component/open}/component.js +3 -4
- package/components/overlays/dialog/component/portal/component.d.ts +3 -0
- package/components/overlays/dialog/component/portal/component.interface.d.ts +3 -0
- package/components/{texts/h1/component/icon → overlays/dialog/component/portal}/component.js +3 -3
- package/components/overlays/dialog/component/portal/viewport/backdrop/component.d.ts +3 -0
- package/components/overlays/dialog/component/portal/viewport/backdrop/component.interface.d.ts +3 -0
- package/components/overlays/dialog/component/portal/viewport/backdrop/component.js +30 -0
- package/components/overlays/dialog/component/portal/viewport/component.d.ts +3 -0
- package/components/overlays/dialog/component/portal/viewport/component.interface.d.ts +3 -0
- package/components/overlays/{dialogs/dialog/component/dialog/body → dialog/component/portal/viewport}/component.js +3 -3
- package/components/overlays/dialog/component/portal/viewport/popup/component.d.ts +3 -0
- package/components/overlays/dialog/component/portal/viewport/popup/component.interface.d.ts +3 -0
- package/components/overlays/{dialogs/dialog/(images)/dialog → dialog/component/portal/viewport/popup}/component.js +4 -4
- package/components/overlays/dialog/component/portal/viewport/popup/content/component.d.ts +3 -0
- package/components/overlays/{dialogs/dialog/component/dialog/header → dialog/component/portal/viewport/popup/content}/component.interface.d.ts +1 -1
- package/components/{texts/h1/component/text → overlays/dialog/component/portal/viewport/popup/content}/component.js +4 -4
- package/components/overlays/drawer/component/close/component.d.ts +3 -0
- package/components/overlays/drawer/component/close/component.interface.d.ts +3 -0
- package/components/{texts/h3/component/icon → overlays/drawer/component/close}/component.js +3 -4
- package/components/overlays/drawer/component/component.d.ts +3 -0
- package/components/overlays/drawer/component/component.interface.d.ts +3 -0
- package/components/overlays/drawer/component/component.js +28 -0
- package/components/overlays/drawer/component/component.module.css +206 -0
- package/components/overlays/drawer/component/index.d.ts +58 -0
- package/components/overlays/drawer/component/index.js +22 -0
- package/components/overlays/drawer/component/open/component.d.ts +3 -0
- package/components/overlays/drawer/component/open/component.interface.d.ts +3 -0
- package/components/{texts/h2/component/icon → overlays/drawer/component/open}/component.js +3 -4
- package/components/overlays/drawer/component/portal/component.d.ts +3 -0
- package/components/overlays/drawer/component/portal/component.interface.d.ts +3 -0
- package/components/overlays/drawer/component/portal/component.js +29 -0
- package/components/overlays/drawer/component/portal/viewport/backdrop/component.d.ts +3 -0
- package/components/overlays/drawer/component/portal/viewport/backdrop/component.interface.d.ts +3 -0
- package/components/overlays/drawer/component/portal/viewport/backdrop/component.js +30 -0
- package/components/overlays/drawer/component/portal/viewport/component.d.ts +3 -0
- package/components/overlays/drawer/component/portal/viewport/component.interface.d.ts +3 -0
- package/components/overlays/{dialogs/dialog/component/dialog/footer → drawer/component/portal/viewport}/component.js +3 -3
- package/components/overlays/drawer/component/portal/viewport/popup/component.d.ts +3 -0
- package/components/overlays/drawer/component/portal/viewport/popup/component.interface.d.ts +3 -0
- package/components/{texts/h1/skeleton/icon → overlays/drawer/component/portal/viewport/popup}/component.js +4 -4
- package/components/overlays/drawer/component/portal/viewport/popup/content/component.d.ts +3 -0
- package/components/{texts/a/component/text → overlays/drawer/component/portal/viewport/popup/content}/component.interface.d.ts +1 -1
- package/components/overlays/drawer/component/portal/viewport/popup/content/component.js +30 -0
- package/components/overlays/drawer/component/portal/viewport/popup/handle/component.d.ts +3 -0
- package/components/overlays/{dialogs/dialog/component/dialog/footer → drawer/component/portal/viewport/popup/handle}/component.interface.d.ts +1 -1
- package/components/{texts/a/component/text → overlays/drawer/component/portal/viewport/popup/handle}/component.js +4 -4
- package/components/overlays/dropdown/component/component.interface.d.ts +1 -1
- package/components/overlays/dropdown/component/component.js +1 -1
- package/components/overlays/observer/component/component.d.ts +3 -0
- package/components/{texts/h3/component/text → overlays/observer/component}/component.js +4 -4
- package/components/overlays/observer/component/component.module.css +19 -0
- package/components/{texts/h3/component/text/component.interface.d.ts → overlays/observer/component/component.props.d.ts} +1 -1
- package/components/overlays/observer/component/index.d.ts +6 -0
- package/components/overlays/observer/component/index.js +2 -0
- package/components/texts/a/component/component.module.css +1 -75
- package/components/texts/a/component/index.d.ts +1 -14
- package/components/texts/a/component/index.js +1 -6
- package/components/texts/a/skeleton/component.d.ts +1 -1
- package/components/texts/a/skeleton/component.interface.d.ts +1 -1
- package/components/texts/a/skeleton/component.js +4 -4
- package/components/texts/a/skeleton/component.module.css +8 -23
- package/components/texts/a/skeleton/index.d.ts +3 -16
- package/components/texts/a/skeleton/index.js +1 -6
- package/components/texts/counter/component/component.module.css +5 -1
- package/components/texts/data/component/component.d.ts +3 -0
- package/components/texts/{p/component/text → data/component}/component.interface.d.ts +1 -1
- package/components/texts/{p/component/text → data/component}/component.js +4 -4
- package/components/texts/data/component/component.module.css +15 -0
- package/components/texts/data/component/index.d.ts +6 -0
- package/components/texts/data/component/index.js +2 -0
- package/components/texts/data/skeleton/component.d.ts +3 -0
- package/components/texts/{h1/component/text → data/skeleton}/component.interface.d.ts +1 -1
- package/components/texts/data/skeleton/component.js +31 -0
- package/components/texts/data/skeleton/component.module.css +16 -0
- package/components/texts/data/skeleton/index.d.ts +6 -0
- package/components/texts/data/skeleton/index.js +2 -0
- package/components/texts/h1/component/component.module.css +1 -41
- package/components/texts/h1/component/index.d.ts +1 -14
- package/components/texts/h1/component/index.js +1 -6
- package/components/texts/h1/skeleton/component.d.ts +1 -1
- package/components/texts/h1/skeleton/component.interface.d.ts +1 -1
- package/components/texts/h1/skeleton/component.js +3 -2
- package/components/texts/h1/skeleton/component.module.css +8 -54
- package/components/texts/h1/skeleton/index.d.ts +3 -16
- package/components/texts/h1/skeleton/index.js +1 -6
- package/components/texts/h2/component/component.module.css +2 -42
- package/components/texts/h2/component/index.d.ts +1 -14
- package/components/texts/h2/component/index.js +1 -6
- package/components/texts/h2/skeleton/component.d.ts +1 -1
- package/components/texts/h2/skeleton/component.interface.d.ts +1 -1
- package/components/texts/h2/skeleton/component.js +3 -2
- package/components/texts/h2/skeleton/component.module.css +7 -51
- package/components/texts/h2/skeleton/index.d.ts +3 -16
- package/components/texts/h2/skeleton/index.js +1 -6
- package/components/texts/h3/component/component.module.css +1 -41
- package/components/texts/h3/component/index.d.ts +1 -14
- package/components/texts/h3/component/index.js +1 -6
- package/components/texts/h3/skeleton/component.d.ts +1 -1
- package/components/texts/h3/skeleton/component.interface.d.ts +1 -1
- package/components/texts/h3/skeleton/component.js +3 -2
- package/components/texts/h3/skeleton/component.module.css +6 -50
- package/components/texts/h3/skeleton/index.d.ts +3 -16
- package/components/texts/h3/skeleton/index.js +1 -6
- package/components/texts/h4/component/component.module.css +1 -45
- package/components/texts/h4/component/index.d.ts +1 -14
- package/components/texts/h4/component/index.js +1 -6
- package/components/texts/h4/skeleton/component.d.ts +1 -1
- package/components/texts/h4/skeleton/component.interface.d.ts +1 -1
- package/components/texts/h4/skeleton/component.js +3 -2
- package/components/texts/h4/skeleton/component.module.css +6 -50
- package/components/texts/h4/skeleton/index.d.ts +3 -16
- package/components/texts/h4/skeleton/index.js +1 -6
- package/components/texts/h5/component/component.module.css +1 -41
- package/components/texts/h5/component/index.d.ts +1 -14
- package/components/texts/h5/component/index.js +1 -6
- package/components/texts/h5/skeleton/component.d.ts +1 -1
- package/components/texts/h5/skeleton/component.interface.d.ts +1 -1
- package/components/texts/h5/skeleton/component.js +3 -2
- package/components/texts/h5/skeleton/component.module.css +6 -50
- package/components/texts/h5/skeleton/index.d.ts +3 -16
- package/components/texts/h5/skeleton/index.js +1 -6
- package/components/texts/h6/component/component.module.css +1 -41
- package/components/texts/h6/component/index.d.ts +1 -14
- package/components/texts/h6/component/index.js +1 -6
- package/components/texts/h6/skeleton/component.d.ts +1 -1
- package/components/texts/h6/skeleton/component.interface.d.ts +1 -1
- package/components/texts/h6/skeleton/component.js +3 -2
- package/components/texts/h6/skeleton/component.module.css +7 -51
- package/components/texts/h6/skeleton/index.d.ts +3 -16
- package/components/texts/h6/skeleton/index.js +1 -6
- package/components/texts/p/component/component.module.css +1 -41
- package/components/texts/p/component/index.d.ts +1 -14
- package/components/texts/p/component/index.js +1 -6
- package/components/texts/p/skeleton/component.d.ts +1 -1
- package/components/texts/p/skeleton/component.interface.d.ts +1 -1
- package/components/texts/p/skeleton/component.js +3 -2
- package/components/texts/p/skeleton/component.module.css +6 -50
- package/components/texts/p/skeleton/index.d.ts +2 -15
- package/components/texts/p/skeleton/index.js +1 -6
- package/index.css +35 -9
- package/package.json +28 -7
- package/providers/alerts/context/context.interface.d.ts +1 -1
- package/providers/alerts/list/component.js +1 -1
- package/providers/alerts/provider.js +1 -1
- package/providers/yandex/maps/context/context.d.ts +2 -2
- package/providers/yandex/maps/context/context.interface.d.ts +1 -1
- package/providers/yandex/maps/context/context.js +1 -1
- package/providers/yandex/maps/index.d.ts +4 -4
- package/providers/yandex/maps/index.js +3 -3
- package/providers/yandex/maps/provider.d.ts +2 -2
- package/providers/yandex/maps/provider.interface.d.ts +1 -1
- package/providers/yandex/maps/provider.js +6 -4
- package/styles/libs/style.css +1 -0
- package/styles/libs/swiper/style.css +14 -0
- package/styles/style.css +3 -0
- package/styles/theme/html/style.css +8 -7
- package/styles/theme/style.css +1 -0
- package/styles/utilities/actions/button/[color]/fill.css +393 -0
- package/styles/utilities/actions/button/[color]/glass.css +77 -0
- package/styles/utilities/actions/button/[color]/outline.css +395 -0
- package/styles/utilities/actions/button/[color]/transparent.css +65 -0
- package/styles/utilities/actions/button/[size]/size.css +354 -0
- package/styles/utilities/actions/button/style.css +6 -0
- package/styles/utilities/actions/icon/[color]/fill.css +395 -0
- package/styles/utilities/actions/icon/[color]/glass.css +77 -0
- package/styles/utilities/actions/icon/[color]/outline.css +395 -0
- package/styles/utilities/actions/icon/[color]/transparent.css +65 -0
- package/styles/utilities/actions/icon/[size]/size.css +379 -0
- package/styles/utilities/actions/icon/style.css +6 -0
- package/styles/utilities/actions/input/[color]/fill.css +395 -0
- package/styles/utilities/actions/input/[color]/glass.css +77 -0
- package/styles/utilities/actions/input/[color]/outline.css +392 -0
- package/styles/utilities/actions/input/[color]/transparent.css +65 -0
- package/styles/utilities/actions/input/[size]/size.css +86 -0
- package/styles/utilities/actions/input/style.css +6 -0
- package/styles/utilities/actions/textarea/[color]/fill.css +395 -0
- package/styles/utilities/actions/textarea/[color]/glass.css +25 -0
- package/styles/utilities/actions/textarea/[color]/outline.css +392 -0
- package/styles/utilities/actions/textarea/[color]/transparent.css +65 -0
- package/styles/utilities/actions/textarea/[size]/size.css +96 -0
- package/styles/utilities/actions/textarea/style.css +6 -0
- package/styles/utilities/overlays/scrollbar/style.css +13 -0
- package/styles/utilities/style.css +6 -0
- package/utilities/date/index.js +1 -1
- package/components/collections/accordion/component/item/header/icon/component.d.ts +0 -3
- package/components/collections/accordion/component/item/header/icon/component.interface.d.ts +0 -3
- package/components/collections/accordion/component/item/header/icon/component.js +0 -32
- package/components/integrations/yandex/maps/component/map/component.d.ts +0 -3
- package/components/integrations/yandex/maps/component/map/component.interface.d.ts +0 -5
- package/components/integrations/yandex/maps/component/map/component.js +0 -37
- package/components/integrations/yandex/maps/component/map/default_features_layer/component.d.ts +0 -3
- package/components/integrations/yandex/maps/component/map/default_features_layer/component.interface.d.ts +0 -3
- package/components/integrations/yandex/maps/component/map/default_scheme_layer/component.d.ts +0 -3
- package/components/integrations/yandex/maps/component/map/default_scheme_layer/component.interface.d.ts +0 -3
- package/components/integrations/yandex/maps/component/map/feature/component.d.ts +0 -3
- package/components/integrations/yandex/maps/component/map/marker/component.d.ts +0 -3
- package/components/integrations/yandex/maps/skeleton/map/component.d.ts +0 -3
- package/components/integrations/yandex/maps/skeleton/map/component.interface.d.ts +0 -3
- package/components/integrations/yandex/maps/skeleton/map/component.js +0 -32
- package/components/overlays/dialogs/dialog/(images)/component.module.css +0 -24
- package/components/overlays/dialogs/dialog/(images)/dialog/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/(images)/dialog/component.interface.d.ts +0 -3
- package/components/overlays/dialogs/dialog/(images)/dialog/images/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/(images)/dialog/images/component.interface.d.ts +0 -3
- package/components/overlays/dialogs/dialog/(images)/dialog/images/component.js +0 -47
- package/components/overlays/dialogs/dialog/(images)/dialog/images/image/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/(images)/dialog/images/image/component.interface.d.ts +0 -3
- package/components/overlays/dialogs/dialog/(images)/index.d.ts +0 -49
- package/components/overlays/dialogs/dialog/(images)/index.js +0 -16
- package/components/overlays/dialogs/dialog/component/backdrop/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/component/backdrop/component.interface.d.ts +0 -3
- package/components/overlays/dialogs/dialog/component/backdrop/component.js +0 -39
- package/components/overlays/dialogs/dialog/component/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/component/component.interface.d.ts +0 -8
- package/components/overlays/dialogs/dialog/component/component.js +0 -139
- package/components/overlays/dialogs/dialog/component/component.module.css +0 -211
- package/components/overlays/dialogs/dialog/component/context/component.d.ts +0 -2
- package/components/overlays/dialogs/dialog/component/context/component.interface.d.ts +0 -9
- package/components/overlays/dialogs/dialog/component/context/component.js +0 -2
- package/components/overlays/dialogs/dialog/component/dialog/body/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/component/dialog/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/component/dialog/component.interface.d.ts +0 -3
- package/components/overlays/dialogs/dialog/component/dialog/component.js +0 -85
- package/components/overlays/dialogs/dialog/component/dialog/footer/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/component/dialog/header/component.d.ts +0 -3
- package/components/overlays/dialogs/dialog/component/dialog/header/component.js +0 -30
- package/components/overlays/dialogs/dialog/component/index.d.ts +0 -43
- package/components/overlays/dialogs/dialog/component/index.js +0 -16
- package/components/texts/a/component/icon/component.d.ts +0 -3
- package/components/texts/a/component/icon/component.interface.d.ts +0 -4
- package/components/texts/a/component/text/component.d.ts +0 -3
- package/components/texts/a/skeleton/icon/component.d.ts +0 -3
- package/components/texts/a/skeleton/icon/component.interface.d.ts +0 -3
- package/components/texts/a/skeleton/icon/component.js +0 -31
- package/components/texts/a/skeleton/text/component.d.ts +0 -3
- package/components/texts/a/skeleton/text/component.interface.d.ts +0 -4
- package/components/texts/a/skeleton/text/component.js +0 -31
- package/components/texts/h1/component/icon/component.d.ts +0 -3
- package/components/texts/h1/component/icon/component.interface.d.ts +0 -4
- package/components/texts/h1/component/text/component.d.ts +0 -3
- package/components/texts/h1/skeleton/icon/component.d.ts +0 -3
- package/components/texts/h1/skeleton/icon/component.interface.d.ts +0 -3
- package/components/texts/h1/skeleton/text/component.d.ts +0 -3
- package/components/texts/h1/skeleton/text/component.interface.d.ts +0 -4
- package/components/texts/h1/skeleton/text/component.js +0 -30
- package/components/texts/h2/component/icon/component.d.ts +0 -3
- package/components/texts/h2/component/icon/component.interface.d.ts +0 -4
- package/components/texts/h2/component/text/component.d.ts +0 -4
- package/components/texts/h2/skeleton/icon/component.d.ts +0 -3
- package/components/texts/h2/skeleton/icon/component.interface.d.ts +0 -3
- package/components/texts/h2/skeleton/icon/component.js +0 -30
- package/components/texts/h2/skeleton/text/component.d.ts +0 -3
- package/components/texts/h2/skeleton/text/component.interface.d.ts +0 -4
- package/components/texts/h2/skeleton/text/component.js +0 -30
- package/components/texts/h3/component/icon/component.d.ts +0 -3
- package/components/texts/h3/component/icon/component.interface.d.ts +0 -4
- package/components/texts/h3/component/text/component.d.ts +0 -3
- package/components/texts/h3/skeleton/icon/component.d.ts +0 -3
- package/components/texts/h3/skeleton/icon/component.interface.d.ts +0 -3
- package/components/texts/h3/skeleton/icon/component.js +0 -30
- package/components/texts/h3/skeleton/text/component.d.ts +0 -3
- package/components/texts/h3/skeleton/text/component.interface.d.ts +0 -4
- package/components/texts/h3/skeleton/text/component.interface.js +0 -1
- package/components/texts/h3/skeleton/text/component.js +0 -30
- package/components/texts/h4/component/icon/component.d.ts +0 -3
- package/components/texts/h4/component/icon/component.interface.d.ts +0 -4
- package/components/texts/h4/component/icon/component.interface.js +0 -1
- package/components/texts/h4/component/icon/component.js +0 -30
- package/components/texts/h4/component/text/component.d.ts +0 -3
- package/components/texts/h4/component/text/component.interface.d.ts +0 -5
- package/components/texts/h4/component/text/component.interface.js +0 -1
- package/components/texts/h4/component/text/component.js +0 -30
- package/components/texts/h4/skeleton/icon/component.d.ts +0 -3
- package/components/texts/h4/skeleton/icon/component.interface.d.ts +0 -3
- package/components/texts/h4/skeleton/icon/component.interface.js +0 -1
- package/components/texts/h4/skeleton/icon/component.js +0 -30
- package/components/texts/h4/skeleton/text/component.d.ts +0 -3
- package/components/texts/h4/skeleton/text/component.interface.d.ts +0 -4
- package/components/texts/h4/skeleton/text/component.interface.js +0 -1
- package/components/texts/h4/skeleton/text/component.js +0 -30
- package/components/texts/h5/component/icon/component.d.ts +0 -3
- package/components/texts/h5/component/icon/component.interface.d.ts +0 -4
- package/components/texts/h5/component/icon/component.interface.js +0 -1
- package/components/texts/h5/component/icon/component.js +0 -30
- package/components/texts/h5/component/text/component.d.ts +0 -3
- package/components/texts/h5/component/text/component.interface.d.ts +0 -5
- package/components/texts/h5/component/text/component.interface.js +0 -1
- package/components/texts/h5/component/text/component.js +0 -30
- package/components/texts/h5/skeleton/icon/component.d.ts +0 -3
- package/components/texts/h5/skeleton/icon/component.interface.d.ts +0 -3
- package/components/texts/h5/skeleton/icon/component.interface.js +0 -1
- package/components/texts/h5/skeleton/icon/component.js +0 -30
- package/components/texts/h5/skeleton/text/component.d.ts +0 -3
- package/components/texts/h5/skeleton/text/component.interface.d.ts +0 -4
- package/components/texts/h5/skeleton/text/component.interface.js +0 -1
- package/components/texts/h5/skeleton/text/component.js +0 -30
- package/components/texts/h6/component/icon/component.d.ts +0 -3
- package/components/texts/h6/component/icon/component.interface.d.ts +0 -4
- package/components/texts/h6/component/icon/component.interface.js +0 -1
- package/components/texts/h6/component/icon/component.js +0 -30
- package/components/texts/h6/component/text/component.d.ts +0 -3
- package/components/texts/h6/component/text/component.interface.d.ts +0 -5
- package/components/texts/h6/component/text/component.interface.js +0 -1
- package/components/texts/h6/component/text/component.js +0 -30
- package/components/texts/h6/skeleton/icon/component.d.ts +0 -3
- package/components/texts/h6/skeleton/icon/component.interface.d.ts +0 -3
- package/components/texts/h6/skeleton/icon/component.interface.js +0 -1
- package/components/texts/h6/skeleton/icon/component.js +0 -30
- package/components/texts/h6/skeleton/text/component.d.ts +0 -3
- package/components/texts/h6/skeleton/text/component.interface.d.ts +0 -4
- package/components/texts/h6/skeleton/text/component.interface.js +0 -1
- package/components/texts/h6/skeleton/text/component.js +0 -30
- package/components/texts/p/component/icon/component.d.ts +0 -3
- package/components/texts/p/component/icon/component.interface.d.ts +0 -4
- package/components/texts/p/component/icon/component.interface.js +0 -1
- package/components/texts/p/component/text/component.d.ts +0 -3
- package/components/texts/p/component/text/component.interface.js +0 -1
- package/components/texts/p/skeleton/icon/component.d.ts +0 -3
- package/components/texts/p/skeleton/icon/component.interface.d.ts +0 -3
- package/components/texts/p/skeleton/icon/component.interface.js +0 -1
- package/components/texts/p/skeleton/icon/component.js +0 -30
- package/components/texts/p/skeleton/text/component.d.ts +0 -3
- package/components/texts/p/skeleton/text/component.interface.d.ts +0 -4
- package/components/texts/p/skeleton/text/component.interface.js +0 -1
- package/components/texts/p/skeleton/text/component.js +0 -30
- package/styles/base/swiper/style.css +0 -9
- package/styles/theme/swiper/style.css +0 -2
- package/styles/utilities/buttons/button.css +0 -1096
- package/styles/utilities/icons/icon.css +0 -1119
- package/styles/utilities/inputs/input.css +0 -945
- package/styles/utilities/inputs/textarea.css +0 -955
- package/styles/utilities/scrollbars/scrollbar.css +0 -32
- /package/components/{collections/accordion/component/item/header/icon → actions/input/(mask)/(phone)/component}/component.interface.js +0 -0
- /package/components/{integrations/yandex/maps/component/map/component.interface.js → actions/toggle/skeleton/button/component.props.js} +0 -0
- /package/components/{integrations/yandex/maps/component/map/default_features_layer/component.interface.js → actions/toggle/skeleton/component.props.js} +0 -0
- /package/components/integrations/yandex/maps/component/{map/default_scheme_layer → controls/zoom}/component.interface.js +0 -0
- /package/components/integrations/yandex/maps/component/{map/feature → controls/zoom/minus}/component.interface.js +0 -0
- /package/components/integrations/yandex/maps/component/{map/marker → controls/zoom/plus}/component.interface.js +0 -0
- /package/components/integrations/yandex/maps/{skeleton/map → component/default/features/layer}/component.interface.js +0 -0
- /package/components/{overlays/dialogs/dialog/(images)/dialog → integrations/yandex/maps/component/default/scheme/layer}/component.interface.js +0 -0
- /package/components/{overlays/dialogs/dialog/(images)/dialog/images → integrations/yandex/maps/component/feature}/component.interface.js +0 -0
- /package/components/{overlays/dialogs/dialog/(images)/dialog/images/image → integrations/yandex/maps/component/marker}/component.interface.js +0 -0
- /package/components/{overlays/dialogs/dialog/component/backdrop/component.interface.js → integrations/yandex/maps/component/zoom/context.interface.js} +0 -0
- /package/components/{overlays/dialogs/dialog/component → integrations/yandex/maps/skeleton/default/scheme/layer}/component.interface.js +0 -0
- /package/components/overlays/{dialogs/dialog/component/context → dialog/component/close}/component.interface.js +0 -0
- /package/components/overlays/{dialogs/dialog/component/dialog/body → dialog/component}/component.interface.js +0 -0
- /package/components/overlays/{dialogs/dialog/component/dialog → dialog/component/open}/component.interface.js +0 -0
- /package/components/overlays/{dialogs/dialog/component/dialog/footer → dialog/component/portal}/component.interface.js +0 -0
- /package/components/overlays/{dialogs/dialog/component/dialog/header → dialog/component/portal/viewport/backdrop}/component.interface.js +0 -0
- /package/components/{texts/a/component/icon → overlays/dialog/component/portal/viewport}/component.interface.js +0 -0
- /package/components/{texts/a/component/text → overlays/dialog/component/portal/viewport/popup}/component.interface.js +0 -0
- /package/components/{texts/a/skeleton/icon → overlays/dialog/component/portal/viewport/popup/content}/component.interface.js +0 -0
- /package/components/{texts/a/skeleton/text → overlays/drawer/component/close}/component.interface.js +0 -0
- /package/components/{texts/h1/component/icon → overlays/drawer/component}/component.interface.js +0 -0
- /package/components/{texts/h1/component/text → overlays/drawer/component/open}/component.interface.js +0 -0
- /package/components/{texts/h1/skeleton/icon → overlays/drawer/component/portal}/component.interface.js +0 -0
- /package/components/{texts/h1/skeleton/text → overlays/drawer/component/portal/viewport/backdrop}/component.interface.js +0 -0
- /package/components/{texts/h2/component/icon → overlays/drawer/component/portal/viewport}/component.interface.js +0 -0
- /package/components/{texts/h2/component/text → overlays/drawer/component/portal/viewport/popup}/component.interface.js +0 -0
- /package/components/{texts/h2/skeleton/icon → overlays/drawer/component/portal/viewport/popup/content}/component.interface.js +0 -0
- /package/components/{texts/h2/skeleton/text → overlays/drawer/component/portal/viewport/popup/handle}/component.interface.js +0 -0
- /package/components/{texts/h3/component/icon/component.interface.js → overlays/observer/component/component.props.js} +0 -0
- /package/components/texts/{h3/component/text → data/component}/component.interface.js +0 -0
- /package/components/texts/{h3/skeleton/icon → data/skeleton}/component.interface.js +0 -0
- /package/styles/{theme → libs}/swiper/navigation/style.css +0 -0
- /package/styles/{theme → libs}/swiper/pagination/style.css +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Popover } from '@base-ui
|
|
1
|
+
import { Popover } from '@base-ui/react';
|
|
2
2
|
import { ComponentType, ForwardRefExoticComponent, RefAttributes, SVGProps } from 'react';
|
|
3
3
|
import { ButtonProps } from '../../component/component.interface';
|
|
4
4
|
export interface StatusOption {
|
|
@@ -11,19 +11,25 @@
|
|
|
11
11
|
justify-content: center;
|
|
12
12
|
gap: calc(var(--spacing, .25rem) * 2);
|
|
13
13
|
|
|
14
|
-
background-color:
|
|
14
|
+
background-color: transparent;
|
|
15
15
|
color: var(--color-black, #000);
|
|
16
|
+
|
|
16
17
|
font-size: var(--text-xs, .75rem);
|
|
17
18
|
text-wrap: nowrap;
|
|
19
|
+
text-overflow: ellipsis;
|
|
18
20
|
|
|
19
21
|
padding-left: calc(var(--spacing, .25rem) * 4);
|
|
20
22
|
padding-right: calc(var(--spacing, .25rem) * 4);
|
|
23
|
+
|
|
21
24
|
border-radius: calc(infinity * 1px);
|
|
25
|
+
border: 1px solid transparent;
|
|
22
26
|
outline: none;
|
|
23
27
|
|
|
24
28
|
user-select: none;
|
|
25
29
|
transition: all 200ms ease-in-out;
|
|
26
30
|
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
|
|
27
33
|
svg {
|
|
28
34
|
width: calc(var(--spacing, .25rem) * 3.5);
|
|
29
35
|
height: calc(var(--spacing, .25rem) * 3.5);
|
|
@@ -35,15 +41,6 @@
|
|
|
35
41
|
transition: all 200ms ease-in-out;
|
|
36
42
|
}
|
|
37
43
|
|
|
38
|
-
&:hover {
|
|
39
|
-
background-color: var(--color-gray-100, oklch(0.967 0.003 264.542));
|
|
40
|
-
color: var(--color-primary-500, #0074e7);
|
|
41
|
-
|
|
42
|
-
svg {
|
|
43
|
-
color: var(--color-primary-500, #0074e7);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
44
|
&:not(:hover) {
|
|
48
45
|
transition: all 600ms ease-in-out;
|
|
49
46
|
|
|
@@ -51,7 +48,6 @@
|
|
|
51
48
|
transition: all 600ms ease-in-out;
|
|
52
49
|
}
|
|
53
50
|
}
|
|
54
|
-
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
53
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ElementType, Ref } from 'react';
|
|
2
|
+
import { IMaskInputProps } from 'react-imask';
|
|
3
|
+
export type InputMaskPhoneProps<C extends ElementType = 'input'> = IMaskInputProps<HTMLInputElement> & {
|
|
4
|
+
as?: C;
|
|
5
|
+
ref?: Ref<any>;
|
|
6
|
+
} & Omit<ComponentPropsWithoutRef<C>, 'as' | 'ref' | 'type' | 'mask' | 'definitions' | 'prepare'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputMaskPhoneProps, InputMaskPhoneProps as ParentComponentProps } from './component.interface';
|
|
2
2
|
export declare const InputMaskPhone: (props: ParentComponentProps) => import("react").JSX.Element;
|
|
3
3
|
export declare namespace InputMaskPhone {
|
|
4
|
-
type Props =
|
|
4
|
+
type Props = InputMaskPhoneProps;
|
|
5
5
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var Component = function (props) {
|
|
3
|
-
return ParentComponent(props);
|
|
4
|
-
};
|
|
1
|
+
import { InputMaskPhone as ParentComponent } from './component';
|
|
2
|
+
var Component = function (props) { return ParentComponent(props); };
|
|
5
3
|
export var InputMaskPhone = Object.assign(Component, {});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
2
2
|
import { InputMaskProps } from './component.interface';
|
|
3
|
-
export declare function InputMask({ ...rest }: InputMaskProps): React.JSX.Element;
|
|
3
|
+
export declare function InputMask<C extends ElementType = 'input'>({ as, ...rest }: InputMaskProps<C>): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ElementType, Ref } from 'react';
|
|
2
2
|
import { IMaskInputProps } from 'react-imask';
|
|
3
|
-
export type InputMaskProps = IMaskInputProps<HTMLInputElement> & {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
export type InputMaskProps<C extends ElementType = 'input'> = IMaskInputProps<HTMLInputElement> & {
|
|
4
|
+
as?: C;
|
|
5
|
+
ref?: Ref<any>;
|
|
6
|
+
} & Omit<ComponentPropsWithoutRef<C>, 'as' | 'ref'>;
|
|
@@ -25,6 +25,7 @@ import React from 'react';
|
|
|
25
25
|
import { IMaskInput } from 'react-imask';
|
|
26
26
|
import { Input } from '../../component/component';
|
|
27
27
|
export function InputMask(_a) {
|
|
28
|
-
var rest = __rest(_a, []);
|
|
29
|
-
|
|
28
|
+
var as = _a.as, rest = __rest(_a, ["as"]);
|
|
29
|
+
var Component = (as || IMaskInput);
|
|
30
|
+
return (React.createElement(Input, __assign({}, rest, { as: Component, ref: rest === null || rest === void 0 ? void 0 : rest.ref, className: classNames('mosuk-input-mask', rest === null || rest === void 0 ? void 0 : rest.className) }), rest === null || rest === void 0 ? void 0 : rest.children));
|
|
30
31
|
}
|
|
@@ -84,6 +84,6 @@ export function Toggle(_a) {
|
|
|
84
84
|
el.style.setProperty('--toggle-padding', getComputedStyle(el).paddingTop);
|
|
85
85
|
}
|
|
86
86
|
}, [className]);
|
|
87
|
-
return (React.createElement(ToggleProvider, { value: value, onChange: onChange },
|
|
87
|
+
return (React.createElement(ToggleProvider, { value: value, onChange: onChange, containerRef: containerRef },
|
|
88
88
|
React.createElement(Component, __assign({}, rest, { ref: setRef, onClickCapture: handleClickCapture, className: classNames('mosuk-toggle', styles.toggle, className) }), rest === null || rest === void 0 ? void 0 : rest.children)));
|
|
89
89
|
}
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
align-items: center;
|
|
21
21
|
gap: calc(var(--spacing, .25rem) * 1);
|
|
22
22
|
|
|
23
|
-
background-color:
|
|
24
|
-
backdrop-filter: blur(18px);
|
|
23
|
+
background-color: var(--color-white, #ffffff);
|
|
25
24
|
|
|
26
25
|
padding: var(--toggle-padding);
|
|
27
26
|
|
|
@@ -43,6 +42,8 @@
|
|
|
43
42
|
height: 100%;
|
|
44
43
|
max-height: 100%;
|
|
45
44
|
|
|
45
|
+
z-index: 1;
|
|
46
|
+
|
|
46
47
|
scroll-margin-inline: calc(var(--spacing, .25rem) * 48);
|
|
47
48
|
|
|
48
49
|
&:hover,
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
.indicator {
|
|
60
61
|
position: absolute;
|
|
61
62
|
left: 0;
|
|
62
|
-
z-index:
|
|
63
|
+
z-index: 0;
|
|
63
64
|
|
|
64
65
|
width: var(--toggle-indicator-width);
|
|
65
66
|
height: calc(100% - var(--toggle-padding) * 2);
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
border-radius: calc(infinity * 1px);
|
|
71
72
|
|
|
72
73
|
transform: translateX(var(--toggle-indicator-translate-x));
|
|
73
|
-
transition: all
|
|
74
|
+
transition: all 200ms ease-in-out;
|
|
74
75
|
|
|
75
76
|
&.loading {
|
|
76
77
|
transition: all 0ms ease-in-out;
|
|
@@ -28,7 +28,7 @@ export function ToggleIndicator(_a) {
|
|
|
28
28
|
var _b;
|
|
29
29
|
var as = _a.as, rest = __rest(_a, ["as"]);
|
|
30
30
|
var Component = (as || 'div');
|
|
31
|
-
var _c = useToggle(), value = _c.value, optionRefs = _c.optionRefs;
|
|
31
|
+
var _c = useToggle(), value = _c.value, containerRef = _c.containerRef, optionRefs = _c.optionRefs;
|
|
32
32
|
var _d = useState(null), style = _d[0], setStyle = _d[1];
|
|
33
33
|
useEffect(function () {
|
|
34
34
|
if (!value) {
|
|
@@ -51,14 +51,27 @@ export function ToggleIndicator(_a) {
|
|
|
51
51
|
if (!el) {
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
|
|
54
|
+
var resizeObserver = new ResizeObserver(updatePosition);
|
|
55
|
+
resizeObserver.observe(el);
|
|
56
56
|
var parent = el.offsetParent;
|
|
57
57
|
if (parent) {
|
|
58
|
-
|
|
58
|
+
resizeObserver.observe(parent);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
var container = containerRef.current;
|
|
61
|
+
var mutationObserver = container
|
|
62
|
+
? new MutationObserver(updatePosition)
|
|
63
|
+
: null;
|
|
64
|
+
if (container && mutationObserver) {
|
|
65
|
+
mutationObserver.observe(container, {
|
|
66
|
+
childList: true,
|
|
67
|
+
subtree: false,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return function () {
|
|
71
|
+
resizeObserver.disconnect();
|
|
72
|
+
mutationObserver === null || mutationObserver === void 0 ? void 0 : mutationObserver.disconnect();
|
|
73
|
+
};
|
|
74
|
+
}, [value, containerRef, optionRefs]);
|
|
62
75
|
return (React.createElement(Component, __assign({}, rest, { style: __assign(__assign({}, rest === null || rest === void 0 ? void 0 : rest.style), (style && {
|
|
63
76
|
'--toggle-indicator-width': "".concat(style.width, "px"),
|
|
64
77
|
'--toggle-indicator-translate-x': "".concat(style.left, "px"),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToggleProviderProps } from './provider.interface';
|
|
3
|
-
export declare function ToggleProvider({ value: controlledValue, onChange: controlledOnChange, children, }: ToggleProviderProps): React.JSX.Element;
|
|
3
|
+
export declare function ToggleProvider({ value: controlledValue, onChange: controlledOnChange, containerRef, children, }: ToggleProviderProps): React.JSX.Element;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { ToggleContext } from './context/context';
|
|
4
4
|
export function ToggleProvider(_a) {
|
|
5
|
-
var controlledValue = _a.value, controlledOnChange = _a.onChange, children = _a.children;
|
|
5
|
+
var controlledValue = _a.value, controlledOnChange = _a.onChange, containerRef = _a.containerRef, children = _a.children;
|
|
6
6
|
var _b = useState(null), uncontrolledValue = _b[0], setUncontrolledValue = _b[1];
|
|
7
7
|
var optionRefs = useRef(new Map());
|
|
8
|
+
var fallbackContainerRef = useRef(null);
|
|
8
9
|
var value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
|
|
9
10
|
var onChange = useCallback(function (nextValue) {
|
|
10
11
|
if (controlledOnChange) {
|
|
@@ -22,6 +23,12 @@ export function ToggleProvider(_a) {
|
|
|
22
23
|
optionRefs.current.delete(val);
|
|
23
24
|
}
|
|
24
25
|
}, []);
|
|
25
|
-
var contextValue = useMemo(function () { return ({
|
|
26
|
+
var contextValue = useMemo(function () { return ({
|
|
27
|
+
value: value,
|
|
28
|
+
onChange: onChange,
|
|
29
|
+
containerRef: containerRef !== null && containerRef !== void 0 ? containerRef : fallbackContainerRef,
|
|
30
|
+
optionRefs: optionRefs,
|
|
31
|
+
registerOption: registerOption,
|
|
32
|
+
}); }, [value, onChange, containerRef]);
|
|
26
33
|
return (React.createElement(ToggleContext.Provider, { value: contextValue }, children));
|
|
27
34
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import classNames from 'classnames';
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import { ButtonSkeleton } from '../../../button/skeleton/component';
|
|
26
|
+
import styles from '../component.module.css';
|
|
27
|
+
export function ToggleButtonSkeleton(_a) {
|
|
28
|
+
var as = _a.as, rest = __rest(_a, ["as"]);
|
|
29
|
+
var Component = (as || 'div');
|
|
30
|
+
return (React.createElement(ButtonSkeleton, __assign({}, rest, { as: Component, className: classNames('mosuk-toggle-button', styles.button, rest === null || rest === void 0 ? void 0 : rest.className) }), rest === null || rest === void 0 ? void 0 : rest.children));
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ElementType, Ref } from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type ToggleButtonSkeletonProps<C extends ElementType = 'div'> = {
|
|
3
3
|
as?: C;
|
|
4
4
|
ref?: Ref<any>;
|
|
5
5
|
} & Omit<ComponentPropsWithoutRef<C>, 'as' | 'ref'>;
|
|
@@ -21,10 +21,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import classNames from 'classnames';
|
|
24
|
-
import styles from '../component.module.css';
|
|
25
24
|
import React from 'react';
|
|
26
|
-
|
|
25
|
+
import styles from './component.module.css';
|
|
26
|
+
export function ToggleSkeleton(_a) {
|
|
27
27
|
var as = _a.as, rest = __rest(_a, ["as"]);
|
|
28
|
-
var Component = (as || '
|
|
29
|
-
return (React.createElement(Component, __assign({}, rest, { className: classNames('mosuk-
|
|
28
|
+
var Component = (as || 'div');
|
|
29
|
+
return (React.createElement(Component, __assign({}, rest, { className: classNames('mosuk-toggle', styles.toggle, rest === null || rest === void 0 ? void 0 : rest.className) }), rest === null || rest === void 0 ? void 0 : rest.children));
|
|
30
30
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@layer mosuk-ui {
|
|
2
|
+
@layer index-21 {
|
|
3
|
+
:where(.toggle) {
|
|
4
|
+
--toggle-padding: 2px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.toggle {
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: calc(var(--spacing, .25rem) * 8);
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: calc(var(--spacing, .25rem) * 1);
|
|
20
|
+
|
|
21
|
+
background-color: color-mix(in oklab, var(--color-white) 50%, transparent);
|
|
22
|
+
backdrop-filter: blur(18px);
|
|
23
|
+
|
|
24
|
+
padding: var(--toggle-padding);
|
|
25
|
+
|
|
26
|
+
border-radius: calc(infinity * 1px);
|
|
27
|
+
border: 1px solid color-mix(in oklab, var(--color-gray-200, oklch(0.928 0.006 264.531)) 50%, transparent);
|
|
28
|
+
|
|
29
|
+
&::-webkit-scrollbar {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:disabled {
|
|
34
|
+
opacity: 50%;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.button {
|
|
39
|
+
width: fit-content;
|
|
40
|
+
min-width: fit-content;
|
|
41
|
+
height: 100%;
|
|
42
|
+
max-height: 100%;
|
|
43
|
+
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
|
|
46
|
+
scroll-margin-inline: calc(var(--spacing, .25rem) * 48);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ElementType, Ref } from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type ToggleSkeletonProps<C extends ElementType = 'div'> = {
|
|
3
3
|
as?: C;
|
|
4
4
|
ref?: Ref<any>;
|
|
5
5
|
} & Omit<ComponentPropsWithoutRef<C>, 'as' | 'ref'>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ToggleButtonSkeleton } from './button/component';
|
|
2
|
+
import { ToggleButtonSkeletonProps } from './button/component.props';
|
|
3
|
+
import { ToggleSkeleton as Component } from './component';
|
|
4
|
+
import type { ToggleSkeletonProps } from './component.props';
|
|
5
|
+
export declare const ToggleSkeleton: typeof Component & {
|
|
6
|
+
Button: typeof ToggleButtonSkeleton;
|
|
7
|
+
};
|
|
8
|
+
export declare namespace ToggleSkeleton {
|
|
9
|
+
type Props = ToggleSkeletonProps;
|
|
10
|
+
namespace Button {
|
|
11
|
+
type Props = ToggleButtonSkeletonProps;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { Accordion as BaseAccordion } from '@base-ui
|
|
23
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import styles from './component.module.css';
|
|
@@ -2,16 +2,6 @@
|
|
|
2
2
|
@layer index-14 {
|
|
3
3
|
.accordion {
|
|
4
4
|
.item {
|
|
5
|
-
padding-bottom: calc(var(--spacing, .25rem) * 4);
|
|
6
|
-
margin-bottom: calc(var(--spacing, .25rem) * 4);
|
|
7
|
-
border-bottom: 1px solid var(--color-gray-100, oklch(0.967 0.003 264.542));
|
|
8
|
-
|
|
9
|
-
&:last-child {
|
|
10
|
-
padding-bottom: 0;
|
|
11
|
-
margin-bottom: 0;
|
|
12
|
-
border-bottom: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
5
|
.header {
|
|
16
6
|
width: 100%;
|
|
17
7
|
|
|
@@ -27,17 +17,6 @@
|
|
|
27
17
|
|
|
28
18
|
cursor: pointer;
|
|
29
19
|
}
|
|
30
|
-
|
|
31
|
-
.icon {
|
|
32
|
-
&[data-panel-open] {
|
|
33
|
-
background-color: var(--color-gray-100, oklch(0.967 0.003 264.542));
|
|
34
|
-
color: var(--color-gray-500, oklch(0.551 0.027 264.364));
|
|
35
|
-
|
|
36
|
-
svg {
|
|
37
|
-
transform: rotate(45deg);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
20
|
}
|
|
42
21
|
}
|
|
43
22
|
|
|
@@ -8,12 +8,9 @@ import { AccordionHeader as BaseAccordionHeader } from './item/header/component'
|
|
|
8
8
|
import { AccordionHeaderProps } from './item/header/component.interface';
|
|
9
9
|
import { AccordionHeaderContent as BaseAccordionHeaderContent } from './item/header/content/component';
|
|
10
10
|
import { AccordionHeaderContentProps } from './item/header/content/component.interface';
|
|
11
|
-
import { AccordionHeaderIcon as BaseAccordionHeaderIcon } from './item/header/icon/component';
|
|
12
|
-
import { AccordionHeaderIconProps } from './item/header/icon/component.interface';
|
|
13
11
|
export declare const Accordion: typeof BaseAccordion & {
|
|
14
12
|
Item: typeof BaseAccordionItem;
|
|
15
13
|
Header: typeof BaseAccordionHeader & {
|
|
16
|
-
Icon: typeof BaseAccordionHeaderIcon;
|
|
17
14
|
Content: typeof BaseAccordionHeaderContent;
|
|
18
15
|
};
|
|
19
16
|
Content: typeof BaseAccordionContent;
|
|
@@ -25,9 +22,6 @@ export declare namespace Accordion {
|
|
|
25
22
|
}
|
|
26
23
|
namespace Header {
|
|
27
24
|
type Props = AccordionHeaderProps;
|
|
28
|
-
namespace Icon {
|
|
29
|
-
type Props = AccordionHeaderIconProps;
|
|
30
|
-
}
|
|
31
25
|
namespace Content {
|
|
32
26
|
type Props = AccordionHeaderContentProps;
|
|
33
27
|
}
|
|
@@ -3,12 +3,10 @@ import { AccordionItem as BaseAccordionItem } from './item/component';
|
|
|
3
3
|
import { AccordionContent as BaseAccordionContent } from './item/content/component';
|
|
4
4
|
import { AccordionHeader as BaseAccordionHeader } from './item/header/component';
|
|
5
5
|
import { AccordionHeaderContent as BaseAccordionHeaderContent } from './item/header/content/component';
|
|
6
|
-
import { AccordionHeaderIcon as BaseAccordionHeaderIcon } from './item/header/icon/component';
|
|
7
6
|
export var Accordion = Object.assign(BaseAccordion, {
|
|
8
7
|
Item: BaseAccordionItem,
|
|
9
8
|
Header: Object.assign(BaseAccordionHeader, {
|
|
10
9
|
Content: BaseAccordionHeaderContent,
|
|
11
|
-
Icon: BaseAccordionHeaderIcon,
|
|
12
10
|
}),
|
|
13
11
|
Content: BaseAccordionContent,
|
|
14
12
|
});
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { Accordion as BaseAccordion } from '@base-ui
|
|
23
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import styles from '../component.module.css';
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { Accordion as BaseAccordion } from '@base-ui
|
|
23
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import styles from '../../component.module.css';
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { Accordion as BaseAccordion } from '@base-ui
|
|
23
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import styles from '../../component.module.css';
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { Accordion as BaseAccordion } from '@base-ui
|
|
23
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
export function AccordionHeaderContent(_a) {
|
|
@@ -23,7 +23,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import React from 'react';
|
|
24
24
|
import { IconSkeleton } from '../../../actions/icon/skeleton/component';
|
|
25
25
|
import { H3Skeleton } from '../../../texts/h3/skeleton/component';
|
|
26
|
-
import { H3TextSkeleton } from '../../../texts/h3/skeleton/text/component';
|
|
27
26
|
import styles from './component.module.css';
|
|
28
27
|
export function AccordionSkeleton(_a) {
|
|
29
28
|
var _b;
|
|
@@ -42,8 +41,7 @@ export function AccordionSkeletonHeader(_a) {
|
|
|
42
41
|
}
|
|
43
42
|
export function AccordionSkeletonHeaderContent(_a) {
|
|
44
43
|
var props = __rest(_a, []);
|
|
45
|
-
return
|
|
46
|
-
React.createElement(H3TextSkeleton, null)));
|
|
44
|
+
return React.createElement(H3Skeleton, __assign({}, props));
|
|
47
45
|
}
|
|
48
46
|
export function AccordionSkeletonHeaderIcon(_a) {
|
|
49
47
|
var props = __rest(_a, []);
|
|
@@ -21,6 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import React, { Children, isValidElement } from 'react';
|
|
24
|
+
import { FreeMode, Mousewheel } from 'swiper/modules';
|
|
24
25
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
25
26
|
import { BreadcrumbsButtonSkeleton } from '../skeleton/button/component';
|
|
26
27
|
import { BreadcrumbsIconSkeleton } from '../skeleton/icon/component';
|
|
@@ -28,10 +29,24 @@ import { BreadcrumbsButton } from './button/component';
|
|
|
28
29
|
import styles from './component.module.css';
|
|
29
30
|
import { BreadcrumbsIcon } from './icon/component';
|
|
30
31
|
export function Breadcrumbs(_a) {
|
|
31
|
-
var _b, _c, _d, _e;
|
|
32
|
+
var _b, _c, _d, _e, _f;
|
|
32
33
|
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
33
|
-
return (React.createElement(Swiper, __assign({}, rest, { modules: [], freeMode: (_b = rest === null || rest === void 0 ? void 0 : rest.freeMode) !== null && _b !== void 0 ? _b :
|
|
34
|
-
|
|
34
|
+
return (React.createElement(Swiper, __assign({}, rest, { modules: [FreeMode, Mousewheel], freeMode: (_b = rest === null || rest === void 0 ? void 0 : rest.freeMode) !== null && _b !== void 0 ? _b : {
|
|
35
|
+
enabled: true,
|
|
36
|
+
momentum: true,
|
|
37
|
+
momentumRatio: 0.8,
|
|
38
|
+
minimumVelocity: 0.05,
|
|
39
|
+
}, mousewheel: (_c = rest === null || rest === void 0 ? void 0 : rest.mousewheel) !== null && _c !== void 0 ? _c : {
|
|
40
|
+
enabled: true,
|
|
41
|
+
forceToAxis: true,
|
|
42
|
+
sensitivity: 1,
|
|
43
|
+
releaseOnEdges: false,
|
|
44
|
+
}, slidesPerView: (_d = rest === null || rest === void 0 ? void 0 : rest.slidesPerView) !== null && _d !== void 0 ? _d : 'auto', spaceBetween: (_e = rest === null || rest === void 0 ? void 0 : rest.spaceBetween) !== null && _e !== void 0 ? _e : 4, className: "mosuk-breadcrumbs ".concat(styles.breadcrumbs, " ").concat((_f = rest.className) !== null && _f !== void 0 ? _f : '') }), Children.map(children, function (child, index) {
|
|
45
|
+
if (isValidElement(child) &&
|
|
46
|
+
(child.type === BreadcrumbsIcon ||
|
|
47
|
+
child.type === BreadcrumbsButton ||
|
|
48
|
+
child.type === BreadcrumbsIconSkeleton ||
|
|
49
|
+
child.type === BreadcrumbsButtonSkeleton)) {
|
|
35
50
|
return (React.createElement(SwiperSlide, { key: index, className: styles.slide }, child));
|
|
36
51
|
}
|
|
37
52
|
return child;
|