@midas-ds/components 1.0.3 → 1.2.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/CHANGELOG.md +39 -1
- package/accordion/Accordion.d.ts +8 -8
- package/accordion/AccordionItem.d.ts +11 -3
- package/accordion/index.d.ts +0 -3
- package/global.css +1 -0
- package/index.cjs +138 -0
- package/index.css +1 -1
- package/index.d.ts +0 -1
- package/index.js +27067 -110
- package/package.json +21 -4
- package/theme.cjs +1 -0
- package/tokens-BskyMDHv.cjs +1 -0
- package/Breadcrumbs.css +0 -1
- package/Button-B4vMZbC6.js +0 -182
- package/Button.css +0 -1
- package/ButtonGroup.css +0 -1
- package/Card.css +0 -1
- package/Checkbox-DnKWanep.js +0 -402
- package/Checkbox.css +0 -1
- package/Collection-COLWgm24.js +0 -510
- package/ComboBox.css +0 -1
- package/DatePicker.css +0 -1
- package/Dialog-Cb6toyXO.js +0 -1951
- package/DragAndDrop-B0T3WgjL.js +0 -40
- package/Dropdown.css +0 -1
- package/FileUpload.css +0 -1
- package/Flex.css +0 -1
- package/Flex.module-CpoxBzQX.js +0 -37
- package/FocusScope-C8i7CH6y.js +0 -513
- package/Form-BQQs3jUk.js +0 -238
- package/Grid.css +0 -1
- package/Grid.module-Ia0e9Dix.js +0 -36
- package/Group-CdwXhx8Q.js +0 -42
- package/Hidden-DngIphiL.js +0 -37
- package/InfoBanner.css +0 -1
- package/Layout.css +0 -1
- package/Link-iAZLB3RI.js +0 -75
- package/Link.css +0 -1
- package/LinkButton.css +0 -1
- package/ListBox-BKWkIIm6.js +0 -474
- package/ListKeyboardDelegate-BH-K5hyq.js +0 -172
- package/Logo.css +0 -1
- package/Modal.css +0 -1
- package/MultiSelect.css +0 -1
- package/PressResponder-Cz-TRBHO.js +0 -31
- package/RSPContexts-EOiWkKOf.js +0 -11
- package/Radio.css +0 -1
- package/SearchField.css +0 -1
- package/Select.css +0 -1
- package/SelectionManager-8o40f7mx.js +0 -1047
- package/Separator-BlvmQjwz.js +0 -49
- package/Spinner.css +0 -1
- package/Table.css +0 -1
- package/Tabs.css +0 -1
- package/Tag--W5TgxmK.js +0 -728
- package/Tag.css +0 -1
- package/Text-CQPW6xs7.js +0 -15
- package/TextArea.css +0 -1
- package/TextField-DeK_yiK-.js +0 -225
- package/TextField.css +0 -1
- package/TextField.module-0-u4LVPp.js +0 -143
- package/Toast.css +0 -1
- package/VisuallyHidden-CFx06Bae.js +0 -39
- package/accordion/AccordionContent.d.ts +0 -3
- package/accordion/AccordionTagContext.d.ts +0 -3
- package/accordion/AccordionTrigger.d.ts +0 -3
- package/chevron-down-Cd1bkzXT.js +0 -13
- package/chevron-right-DBMc9VMi.js +0 -23
- package/clsx-OuTLNxxd.js +0 -16
- package/context-Bnqknrce.js +0 -80
- package/createLucideIcon-DeWljiyi.js +0 -79
- package/index-B-jHjTDC.js +0 -120
- package/index-BPdc9gJ8.js +0 -3122
- package/index-DK9ZACEc.js +0 -642
- package/index-KSgQWWiy.js +0 -26984
- package/index10.js +0 -4
- package/index11.js +0 -5
- package/index12.js +0 -4
- package/index13.js +0 -4
- package/index14.js +0 -4
- package/index15.js +0 -6
- package/index16.js +0 -6
- package/index17.js +0 -6
- package/index18.js +0 -4
- package/index19.js +0 -6
- package/index2.js +0 -8
- package/index20.js +0 -6
- package/index21.js +0 -4
- package/index22.js +0 -5
- package/index23.js +0 -5
- package/index24.js +0 -5
- package/index25.js +0 -6
- package/index26.js +0 -6
- package/index27.js +0 -6
- package/index28.js +0 -4
- package/index29.js +0 -12
- package/index3.js +0 -6
- package/index31.js +0 -22
- package/index32.js +0 -14
- package/index33.js +0 -11
- package/index34.js +0 -31
- package/index35.js +0 -8
- package/index36.js +0 -9
- package/index37.js +0 -19
- package/index38.js +0 -9
- package/index39.js +0 -9
- package/index4.js +0 -4
- package/index40.js +0 -16
- package/index41.js +0 -16
- package/index42.js +0 -31
- package/index43.js +0 -16
- package/index44.js +0 -6
- package/index45.js +0 -53
- package/index46.js +0 -18
- package/index47.js +0 -27
- package/index48.js +0 -18
- package/index49.js +0 -21
- package/index5.js +0 -5
- package/index50.js +0 -49
- package/index51.js +0 -5
- package/index52.js +0 -25
- package/index53.js +0 -18
- package/index54.js +0 -9
- package/index55.js +0 -25
- package/index56.js +0 -18
- package/index57.js +0 -11
- package/index58.js +0 -12
- package/index59.js +0 -15
- package/index6.js +0 -4
- package/index60.js +0 -9
- package/index61.js +0 -9
- package/index62.js +0 -19
- package/index63.js +0 -22
- package/index64.js +0 -61
- package/index65.js +0 -15
- package/index66.js +0 -11
- package/index67.js +0 -63
- package/index68.js +0 -85
- package/index69.js +0 -74
- package/index7.js +0 -9
- package/index70.js +0 -24
- package/index71.js +0 -69
- package/index72.js +0 -80
- package/index73.js +0 -140
- package/index74.js +0 -70
- package/index75.js +0 -42
- package/index76.js +0 -82
- package/index77.js +0 -71
- package/index78.js +0 -104
- package/index79.js +0 -274
- package/index8.js +0 -4
- package/index80.js +0 -723
- package/index81.js +0 -489
- package/index82.js +0 -314
- package/index83.js +0 -389
- package/index84.js +0 -252
- package/index85.js +0 -1363
- package/index86.js +0 -1009
- package/index87.js +0 -386
- package/index88.js +0 -2101
- package/index89.js +0 -2369
- package/index9.js +0 -5
- package/index90.js +0 -6836
- package/index91.js +0 -17
- package/index92.js +0 -14
- package/index93.js +0 -6
- package/index94.js +0 -9
- package/intlStrings-Cd44R5hT.js +0 -278
- package/react.esm-sMU8Z7rL.js +0 -11060
- package/triangle-alert-1OYl9KWz.js +0 -56
- package/useControlledState-DrAoodI6.js +0 -45
- package/useDescription-BPs7eRff.js +0 -32
- package/useField-Dz62UHCP.js +0 -67
- package/useFilter-ViwzkzZe.js +0 -35
- package/useFocusRing-BKGhL91C.js +0 -1297
- package/useFocusable-CRSmYEQc.js +0 -59
- package/useGridSelectionCheckbox-CVEvUCJL.js +0 -22
- package/useHasTabbableChild-C8y4fwiY.js +0 -34
- package/useHighlightSelectionDescription-CD74uzLh.js +0 -552
- package/useListState-DKnP5TB5.js +0 -119
- package/useLocalizedStringFormatter-DsZ-ZWSk.js +0 -96
- package/useSingleSelectListState-BHTLh8Ob.js +0 -34
- package/useUpdateEffect-Dtz-i14F.js +0 -12
- package/x-JK7i-TQC.js +0 -14
- /package/{index30.js → theme.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
1
|
-
## 1.
|
|
1
|
+
## 1.2.3 (2025-02-11)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for components to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.2.2 (2025-02-11)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for components to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
9
|
+
## 1.2.1 (2025-02-11)
|
|
10
|
+
|
|
11
|
+
This was a version bump only for components to align it with other projects, there were no code changes.
|
|
12
|
+
|
|
13
|
+
## 1.2.0 (2025-02-11)
|
|
14
|
+
|
|
15
|
+
### 🚀 Features
|
|
16
|
+
|
|
17
|
+
- **components:** add nvm config ([7cbbce66e](https://github.com/migrationsverket/midas/commit/7cbbce66e))
|
|
18
|
+
- **components:** new api and style for accordion ([efab0a198](https://github.com/migrationsverket/midas/commit/efab0a198))
|
|
19
|
+
|
|
20
|
+
### 🩹 Fixes
|
|
21
|
+
|
|
22
|
+
- **theme:** create separate theme export ([a6c95a23c](https://github.com/migrationsverket/midas/commit/a6c95a23c))
|
|
23
|
+
- **info-banner:** fix icon to be in same line with text in docs and story ([f37b798c3](https://github.com/migrationsverket/midas/commit/f37b798c3))
|
|
24
|
+
- **components:** fix text when titles are longer than one row ([28b06cd31](https://github.com/migrationsverket/midas/commit/28b06cd31))
|
|
25
|
+
- import/export textfield css directly from css module ([#212](https://github.com/migrationsverket/midas/pull/212))
|
|
26
|
+
|
|
27
|
+
### ❤️ Thank You
|
|
28
|
+
|
|
29
|
+
- Axel Engström
|
|
30
|
+
- jabir Khalil
|
|
31
|
+
- pixelrickdreamer @pixelrickdreamer
|
|
32
|
+
- Wilhelm Hjelm
|
|
33
|
+
|
|
34
|
+
## 1.1.0 (2025-01-31)
|
|
35
|
+
|
|
36
|
+
### 🚀 Features
|
|
37
|
+
|
|
38
|
+
- **components:** new api and style for accordion
|
|
2
39
|
|
|
3
40
|
### 🩹 Fixes
|
|
4
41
|
|
|
@@ -7,6 +44,7 @@
|
|
|
7
44
|
### ❤️ Thank You
|
|
8
45
|
|
|
9
46
|
- pixelrickdreamer
|
|
47
|
+
- Wilhelm Hjelm
|
|
10
48
|
|
|
11
49
|
## 1.0.2 (2025-01-27)
|
|
12
50
|
|
package/accordion/Accordion.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
|
|
1
|
+
import { DisclosureGroupProps } from 'react-aria-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface MidasAccordion extends DisclosureGroupProps {
|
|
4
|
+
/** Display either the larger contained variant or a smaller uncontained variant */
|
|
5
|
+
variant?: 'uncontained' | 'contained';
|
|
6
|
+
/** Weither to allow the user to have multiple accordions open at the same time */
|
|
7
|
+
type?: 'single' | 'multiple';
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Accordions are used primarily to reduce the direct amount of information on a page and to sort it clearly.
|
|
11
11
|
*/
|
|
12
|
-
export declare const Accordion: React.
|
|
12
|
+
export declare const Accordion: React.FC<MidasAccordion>;
|
|
13
13
|
export {};
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
|
|
1
|
+
import { DisclosureProps, HeadingProps } from 'react-aria-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface MidasAccordionItem extends Omit<DisclosureProps, 'children'> {
|
|
4
|
+
/** The text displayed in the collapsed state */
|
|
5
|
+
title?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** Adjust the titles heading level to your heading tag structure */
|
|
8
|
+
headingLevel?: HeadingProps['level'];
|
|
9
|
+
}
|
|
10
|
+
export declare const AccordionItem: React.FC<MidasAccordionItem>;
|
|
11
|
+
export {};
|
package/accordion/index.d.ts
CHANGED
package/global.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|