@infonomic/uikit 6.0.4 → 6.0.5
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/README.md +13 -13
- package/dist/astro.d.ts +8 -8
- package/dist/astro.js +8 -8
- package/dist/components/inputs/@types/checkbox.d.ts.map +1 -0
- package/dist/components/inputs/@types/input.d.ts.map +1 -0
- package/dist/components/inputs/calendar.d.ts.map +1 -0
- package/dist/components/inputs/calendar.module.js +45 -0
- package/dist/components/{forms → inputs}/calendar_module.css +37 -37
- package/dist/components/inputs/checkbox-group.d.ts.map +1 -0
- package/dist/components/{forms → inputs}/checkbox-group.module.js +2 -2
- package/dist/components/{forms → inputs}/checkbox-group_module.css +1 -1
- package/dist/components/inputs/checkbox.d.ts.map +1 -0
- package/dist/components/{forms → inputs}/checkbox.js +2 -2
- package/dist/components/inputs/checkbox.module.js +25 -0
- package/dist/components/{forms → inputs}/checkbox_module.css +33 -33
- package/dist/components/inputs/error-text.d.ts.map +1 -0
- package/dist/components/{forms → inputs}/error-text.module.js +4 -4
- package/dist/components/{forms → inputs}/error-text_module.css +4 -4
- package/dist/components/inputs/errors.d.ts.map +1 -0
- package/dist/components/inputs/help-text.d.ts.map +1 -0
- package/dist/components/{forms → inputs}/help-text.module.js +4 -4
- package/dist/components/{forms → inputs}/help-text_module.css +4 -4
- package/dist/components/inputs/input-adornment.d.ts.map +1 -0
- package/dist/components/{forms → inputs}/input-adornment.module.js +3 -3
- package/dist/components/{forms → inputs}/input-adornment_module.css +3 -3
- package/dist/components/{forms → inputs}/input-password.d.ts +1 -1
- package/dist/components/inputs/input-password.d.ts.map +1 -0
- package/dist/components/{forms → inputs}/input.d.ts +1 -1
- package/dist/components/inputs/input.d.ts.map +1 -0
- package/dist/components/inputs/input.module.js +34 -0
- package/dist/components/{forms → inputs}/input_module.css +35 -35
- package/dist/components/inputs/label.d.ts.map +1 -0
- package/dist/components/{forms → inputs}/label.module.js +2 -2
- package/dist/components/{forms → inputs}/label_module.css +2 -2
- package/dist/components/inputs/radio-group.d.ts.map +1 -0
- package/dist/components/inputs/radio-group.module.js +20 -0
- package/dist/components/{forms → inputs}/radio-group_module.css +24 -24
- package/dist/components/inputs/select.d.ts.map +1 -0
- package/dist/components/inputs/select.module.js +23 -0
- package/dist/components/{forms → inputs}/select_module.css +19 -19
- package/dist/components/inputs/text-area.d.ts.map +1 -0
- package/dist/components/inputs/text-area.module.js +7 -0
- package/dist/components/{forms → inputs}/text-area_module.css +2 -2
- package/dist/components/inputs/utils.d.ts.map +1 -0
- package/dist/react.d.ts +14 -14
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +14 -14
- package/dist/styles/components-vanilla.css +1 -1
- package/dist/widgets/datepicker/datepicker.d.ts +1 -1
- package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
- package/dist/widgets/datepicker/datepicker.js +3 -3
- package/dist/widgets/search/search.d.ts +1 -1
- package/dist/widgets/search/search.d.ts.map +1 -1
- package/dist/widgets/search/search.js +2 -2
- package/package.json +1 -1
- package/src/astro.d.ts +5 -5
- package/src/components/{forms → inputs}/calendar.stories.tsx +19 -19
- package/src/components/{forms → inputs}/calendar.tsx +3 -3
- package/src/components/{forms → inputs}/checkbox-group.stories.tsx +1 -1
- package/src/components/{forms → inputs}/checkbox-group.tsx +1 -1
- package/src/components/{forms → inputs}/checkbox.stories.tsx +1 -1
- package/src/components/{forms → inputs}/checkbox.tsx +2 -2
- package/src/components/inputs/index.tsx +8 -0
- package/src/components/{forms → inputs}/input-password.tsx +4 -4
- package/src/components/{forms → inputs}/input.stories.tsx +1 -1
- package/src/components/{forms → inputs}/input.tsx +4 -4
- package/src/components/{forms → inputs}/radio-group.stories.tsx +1 -1
- package/src/components/{forms → inputs}/select.stories.tsx +1 -1
- package/src/components/{forms → inputs}/select.tsx +5 -5
- package/src/components/{forms → inputs}/text-area.stories.tsx +1 -1
- package/src/components/{forms → inputs}/text-area.tsx +3 -3
- package/src/react.ts +14 -14
- package/src/widgets/datepicker/datepicker.tsx +4 -4
- package/src/widgets/search/search.tsx +3 -3
- package/dist/components/forms/@types/checkbox.d.ts.map +0 -1
- package/dist/components/forms/@types/input.d.ts.map +0 -1
- package/dist/components/forms/calendar.d.ts.map +0 -1
- package/dist/components/forms/calendar.module.js +0 -45
- package/dist/components/forms/checkbox-group.d.ts.map +0 -1
- package/dist/components/forms/checkbox.d.ts.map +0 -1
- package/dist/components/forms/checkbox.module.js +0 -25
- package/dist/components/forms/error-text.d.ts.map +0 -1
- package/dist/components/forms/errors.d.ts.map +0 -1
- package/dist/components/forms/help-text.d.ts.map +0 -1
- package/dist/components/forms/input-adornment.d.ts.map +0 -1
- package/dist/components/forms/input-password.d.ts.map +0 -1
- package/dist/components/forms/input.d.ts.map +0 -1
- package/dist/components/forms/input.module.js +0 -34
- package/dist/components/forms/label.d.ts.map +0 -1
- package/dist/components/forms/radio-group.d.ts.map +0 -1
- package/dist/components/forms/radio-group.module.js +0 -20
- package/dist/components/forms/select.d.ts.map +0 -1
- package/dist/components/forms/select.module.js +0 -23
- package/dist/components/forms/text-area.d.ts.map +0 -1
- package/dist/components/forms/text-area.module.js +0 -7
- package/dist/components/forms/utils.d.ts.map +0 -1
- package/src/components/forms/index.tsx +0 -8
- /package/dist/components/{forms → inputs}/@types/checkbox.d.ts +0 -0
- /package/dist/components/{forms → inputs}/@types/checkbox.js +0 -0
- /package/dist/components/{forms → inputs}/@types/input.d.ts +0 -0
- /package/dist/components/{forms → inputs}/@types/input.js +0 -0
- /package/dist/components/{forms → inputs}/calendar.d.ts +0 -0
- /package/dist/components/{forms → inputs}/calendar.js +0 -0
- /package/dist/components/{forms → inputs}/calendar.module.css +0 -0
- /package/dist/components/{forms → inputs}/checkbox-group.d.ts +0 -0
- /package/dist/components/{forms → inputs}/checkbox-group.js +0 -0
- /package/dist/components/{forms → inputs}/checkbox-group.module.css +0 -0
- /package/dist/components/{forms → inputs}/checkbox.astro +0 -0
- /package/dist/components/{forms → inputs}/checkbox.d.ts +0 -0
- /package/dist/components/{forms → inputs}/checkbox.module.css +0 -0
- /package/dist/components/{forms → inputs}/error-text.astro +0 -0
- /package/dist/components/{forms → inputs}/error-text.d.ts +0 -0
- /package/dist/components/{forms → inputs}/error-text.js +0 -0
- /package/dist/components/{forms → inputs}/error-text.module.css +0 -0
- /package/dist/components/{forms → inputs}/errors.d.ts +0 -0
- /package/dist/components/{forms → inputs}/errors.js +0 -0
- /package/dist/components/{forms → inputs}/help-text.astro +0 -0
- /package/dist/components/{forms → inputs}/help-text.d.ts +0 -0
- /package/dist/components/{forms → inputs}/help-text.js +0 -0
- /package/dist/components/{forms → inputs}/help-text.module.css +0 -0
- /package/dist/components/{forms → inputs}/index.js +0 -0
- /package/dist/components/{forms → inputs}/input-adornment.astro +0 -0
- /package/dist/components/{forms → inputs}/input-adornment.d.ts +0 -0
- /package/dist/components/{forms → inputs}/input-adornment.js +0 -0
- /package/dist/components/{forms → inputs}/input-adornment.module.css +0 -0
- /package/dist/components/{forms → inputs}/input-password.js +0 -0
- /package/dist/components/{forms → inputs}/input.astro +0 -0
- /package/dist/components/{forms → inputs}/input.js +0 -0
- /package/dist/components/{forms → inputs}/input.module.css +0 -0
- /package/dist/components/{forms → inputs}/label.astro +0 -0
- /package/dist/components/{forms → inputs}/label.d.ts +0 -0
- /package/dist/components/{forms → inputs}/label.js +0 -0
- /package/dist/components/{forms → inputs}/label.module.css +0 -0
- /package/dist/components/{forms → inputs}/radio-group.d.ts +0 -0
- /package/dist/components/{forms → inputs}/radio-group.js +0 -0
- /package/dist/components/{forms → inputs}/radio-group.module.css +0 -0
- /package/dist/components/{forms → inputs}/select.d.ts +0 -0
- /package/dist/components/{forms → inputs}/select.js +0 -0
- /package/dist/components/{forms → inputs}/select.module.css +0 -0
- /package/dist/components/{forms → inputs}/text-area.astro +0 -0
- /package/dist/components/{forms → inputs}/text-area.d.ts +0 -0
- /package/dist/components/{forms → inputs}/text-area.js +0 -0
- /package/dist/components/{forms → inputs}/text-area.module.css +0 -0
- /package/dist/components/{forms → inputs}/utils.d.ts +0 -0
- /package/dist/components/{forms → inputs}/utils.js +0 -0
- /package/src/components/{forms → inputs}/@types/checkbox.ts +0 -0
- /package/src/components/{forms → inputs}/@types/input.ts +0 -0
- /package/src/components/{forms → inputs}/calendar.module.css +0 -0
- /package/src/components/{forms → inputs}/checkbox-group.module.css +0 -0
- /package/src/components/{forms → inputs}/checkbox.astro +0 -0
- /package/src/components/{forms → inputs}/checkbox.module.css +0 -0
- /package/src/components/{forms → inputs}/error-text.astro +0 -0
- /package/src/components/{forms → inputs}/error-text.module.css +0 -0
- /package/src/components/{forms → inputs}/error-text.tsx +0 -0
- /package/src/components/{forms → inputs}/errors.tsx +0 -0
- /package/src/components/{forms → inputs}/help-text.astro +0 -0
- /package/src/components/{forms → inputs}/help-text.module.css +0 -0
- /package/src/components/{forms → inputs}/help-text.tsx +0 -0
- /package/src/components/{forms → inputs}/input-adornment.astro +0 -0
- /package/src/components/{forms → inputs}/input-adornment.module.css +0 -0
- /package/src/components/{forms → inputs}/input-adornment.tsx +0 -0
- /package/src/components/{forms → inputs}/input.astro +0 -0
- /package/src/components/{forms → inputs}/input.module.css +0 -0
- /package/src/components/{forms → inputs}/label.astro +0 -0
- /package/src/components/{forms → inputs}/label.module.css +0 -0
- /package/src/components/{forms → inputs}/label.tsx +0 -0
- /package/src/components/{forms → inputs}/radio-group.module.css +0 -0
- /package/src/components/{forms → inputs}/radio-group.tsx +0 -0
- /package/src/components/{forms → inputs}/select.module.css +0 -0
- /package/src/components/{forms → inputs}/text-area.astro +0 -0
- /package/src/components/{forms → inputs}/text-area.module.css +0 -0
- /package/src/components/{forms → inputs}/utils.ts +0 -0
package/README.md
CHANGED
|
@@ -4,17 +4,15 @@ A UI kit that relies on CSS Modules for component styling, while playing nicely
|
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
We created this project because while we appreciate Tailwind CSS for front-end development of PoC and smaller applications, we don't feel it belongs in a component library. Tailwind CSS as a [
|
|
7
|
+
We created this project because while we appreciate Tailwind CSS for front-end development of PoC and smaller applications, we don't feel it belongs in a component library. Tailwind CSS as a ['programmatic' atomic CSS system](https://css-tricks.com/lets-define-exactly-atomic-css/#aa-programmatic) - is brilliant at what it does in preventing CSS rot and gradual CSS bloat - as well as making it clear how a layout or front-end component has been styled. It's also the ultimate expression of what [Thierry Koblentz](https://www.smashingmagazine.com/author/thierry-koblentz/) was talking about in his 2013 article, [Challenging CSS Best Practices](https://www.smashingmagazine.com/2013/10/challenging-css-best-practices-atomic-approach/).
|
|
8
8
|
|
|
9
9
|
It just doesn't belong in UI kits and libraries.
|
|
10
10
|
|
|
11
11
|
## Rationale
|
|
12
12
|
|
|
13
|
-
In addition to our thoughts above, this kit is built around the philosophy of adopting or 'folding in' best-in-class components, like the ones in well-known 'à la carte' headless component libraries such as [Base UI](https://base-ui.com/)
|
|
13
|
+
In addition to our thoughts above, this kit is built around the philosophy of adopting or 'folding in' best-in-class components, like the ones in well-known 'à la carte' headless component libraries such as [Base UI](https://base-ui.com/) and [React Aria](https://react-spectrum.adobe.com/react-aria/index.html), as well as other well-known individual components such as [React Day Picker](https://github.com/gpbl/react-day-picker) and more.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Many of the current components are built on Base UI. The great thing about wrapping these components in a client-consumable interface and library, is that in theory at least, the consumer of our kit's components won't have to worry about implementation details, or migration from Base UI to another underlying component library. The 'contract' and core styling semantics will never change.
|
|
15
|
+
Many of the current components are built on [Base UI](https://base-ui.com/) - which is an excellent project. The great thing about wrapping these components in a client-consumable interface and library is that, in theory at least, the consumer of our kit's components won't have to worry about implementation details or migration from one underlying component library to another. The 'contract' and core styling semantics will never change.
|
|
18
16
|
|
|
19
17
|
## Design Goals
|
|
20
18
|
|
|
@@ -22,7 +20,7 @@ We built this with the following design goals in mind:
|
|
|
22
20
|
|
|
23
21
|
1. We'd like a structure and style system that will work with any component framework - [Astro](https://astro.build/), [React](https://react.dev/), [Vue.js](https://vuejs.org/), [Solid](https://www.solidjs.com/), [Svelte](https://svelte.dev/) etc.
|
|
24
22
|
2. We'd like to be able to easily target various front-end meta frameworks, from [Astro](https://astro.build/), to [Next.js](https://nextjs.org/) to [React Router v7](https://reactrouter.com/) (formerly Remix) - and even plain old HTML/CSS.
|
|
25
|
-
3. We'd like a good developer experience (DX), allowing us to develop our components in the 'kit' via tests and Storybook, as well as in a monorepo with
|
|
23
|
+
3. We'd like a good developer experience (DX), allowing us to develop our components in the 'kit' via tests and Storybook, as well as in a monorepo with example front-end meta-frameworks (more to do here).
|
|
26
24
|
|
|
27
25
|
4. We'd like our components' styles to be easily overridable - whether via 'style' attributes, Tailwind, regular CSS classnames and stylesheets, or any other style system being used by the front-end. We'd especially like to be able to override a component's styles without having to use CSS !important.
|
|
28
26
|
|
|
@@ -30,13 +28,15 @@ We built this with the following design goals in mind:
|
|
|
30
28
|
|
|
31
29
|
### Other key points:
|
|
32
30
|
|
|
33
|
-
We use CSS [Cascade layers](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers) via the
|
|
31
|
+
We use CSS [Cascade layers](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers) via the `@layer` statement at-rule for named layers. This allows all of our CSS to be easily overridden by any consuming client application - since CSS outside any layer automatically has a higher specificity than CSS within a layer. We also carefully order our layers to create our own specificity hierarchy - for example - `@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;`
|
|
32
|
+
|
|
33
|
+
For components - this means ensuring that the layer specificity order appears at the top of each CSS module. It acts as a sort of 'preamble' - and it means that the component's bundled CSS will behave correctly when used within the overall UI kit.
|
|
34
|
+
|
|
35
|
+
We also highly value the option to 'tell' components to ignore or override a top-level theme decision of light or dark. There is an intentionally duplicated `.not-dark` class selector in our functional tokens file. Being able to use `.not-dark` means that we can override components that need to be in 'dark mode' on an otherwise 'light theme', or that need to be in `.not-dark` mode on an otherwise 'dark theme'.
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
In addition to CSS modules, we're experimenting with an assembled global stylesheet (in a post-build script) that can be used in vanilla HTML/CSS projects.
|
|
36
38
|
|
|
37
|
-
The use of CSS modules will also allow us to support exporting individual components separately (we export a single bundle for import at the moment) helping to reduce the import and bundle size of the consuming client. Once we've enabled single component exports, a client will then be able to import the main style.css file followed by an individual component. We'll be revisiting this soon.
|
|
38
39
|
|
|
39
|
-
Lastly - we highly value the option to 'tell' components to ignore or override a top-level theme decision of light or dark. There is an intentionally duplicated `.not-dark` class selector in our functional tokens file. Being able to use `.not-dark` means that we can override components that need to be in 'dark mode' on an otherwise 'light theme', or that need to be in .not-dark mode, on an otherwise 'dark theme'.
|
|
40
40
|
|
|
41
41
|
## Getting Started
|
|
42
42
|
|
|
@@ -79,17 +79,17 @@ And then in your application in a global.css or other root CSS file...
|
|
|
79
79
|
Followed by the below in any of your components or routes where you'd like to import a component...
|
|
80
80
|
|
|
81
81
|
```ts
|
|
82
|
-
import { Button, Card, Container, Section } from '@infonomic/uikit/react
|
|
82
|
+
import { Button, Card, Container, Section } from '@infonomic/uikit/react'
|
|
83
83
|
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
## Documentation
|
|
87
87
|
|
|
88
|
-
At the moment self-documented component examples are all based on [Storybook](https://storybook.js.org/). For now at least, in order to view our Storybook stories you'll need to clone this repo, install all dependencies, then change into the packages/
|
|
88
|
+
At the moment, self-documented component examples are all based on [Storybook](https://storybook.js.org/). For now at least, in order to view our Storybook stories you'll need to clone this repo, install all dependencies, then change into the packages/uikit directory and start Storybook with `pnpm storybook` or `npm run storybook`.
|
|
89
89
|
|
|
90
90
|
## Tailwind CSS Integration
|
|
91
91
|
|
|
92
|
-
Here's an example Tailwind CSS integration. Note that we have our own reset, and optional typography system and so the order of our imports
|
|
92
|
+
Here's an example Tailwind CSS integration. Note that we have our own reset, and optional typography system and so the order of our imports is a little different from the usual 'Tailwind first' approach. The example below does NOT use the Tailwind CSS reset.
|
|
93
93
|
|
|
94
94
|
```css
|
|
95
95
|
@layer theme, base, components, utilities;
|
package/dist/astro.d.ts
CHANGED
|
@@ -7,14 +7,14 @@ import type CardHeaderComponent from './components/card/card-header.astro'
|
|
|
7
7
|
import type CardTitleComponent from './components/card/card-title.astro'
|
|
8
8
|
import type CardComponent from './components/card/card.astro'
|
|
9
9
|
import type ContainerComponent from './components/container/container.astro'
|
|
10
|
-
import type CheckboxComponent from './components/forms/checkbox.astro'
|
|
11
|
-
import type ErrorTextComponent from './components/forms/error-text.astro'
|
|
12
|
-
import type HelpTextComponent from './components/forms/help-text.astro'
|
|
13
|
-
import type InputAdornmentComponent from './components/forms/input-adornment.astro'
|
|
14
|
-
import type InputComponent from './components/forms/input.astro'
|
|
15
|
-
import type LabelComponent from './components/forms/label.astro'
|
|
16
|
-
import type TextAreaComponent from './components/forms/text-area.astro'
|
|
17
10
|
import type HamburgerComponent from './components/hamburger/hamburger.astro'
|
|
11
|
+
import type CheckboxComponent from './components/inputs/checkbox.astro'
|
|
12
|
+
import type ErrorTextComponent from './components/inputs/error-text.astro'
|
|
13
|
+
import type HelpTextComponent from './components/inputs/help-text.astro'
|
|
14
|
+
import type InputAdornmentComponent from './components/inputs/input-adornment.astro'
|
|
15
|
+
import type InputComponent from './components/inputs/input.astro'
|
|
16
|
+
import type LabelComponent from './components/inputs/label.astro'
|
|
17
|
+
import type TextAreaComponent from './components/inputs/text-area.astro'
|
|
18
18
|
import type ScrollToTopComponent from './components/scroll-to-top/scroll-to-top.astro'
|
|
19
19
|
import type SectionComponent from './components/section/section.astro'
|
|
20
20
|
import type CheckIconComponent from './icons/check-icon.astro'
|
|
@@ -33,6 +33,7 @@ export declare const CardHeader: typeof CardHeaderComponent
|
|
|
33
33
|
export declare const CardTitle: typeof CardTitleComponent
|
|
34
34
|
export declare const Card: typeof CardComponent
|
|
35
35
|
export declare const Container: typeof ContainerComponent
|
|
36
|
+
export declare const Hamburger: typeof HamburgerComponent
|
|
36
37
|
export declare const Checkbox: typeof CheckboxComponent
|
|
37
38
|
export declare const ErrorText: typeof ErrorTextComponent
|
|
38
39
|
export declare const HelpText: typeof HelpTextComponent
|
|
@@ -40,7 +41,6 @@ export declare const InputAdornment: typeof InputAdornmentComponent
|
|
|
40
41
|
export declare const Input: typeof InputComponent
|
|
41
42
|
export declare const Label: typeof LabelComponent
|
|
42
43
|
export declare const TextArea: typeof TextAreaComponent
|
|
43
|
-
export declare const Hamburger: typeof HamburgerComponent
|
|
44
44
|
export declare const ScrollToTop: typeof ScrollToTopComponent
|
|
45
45
|
export declare const Section: typeof SectionComponent
|
|
46
46
|
export declare const CheckIcon: typeof CheckIconComponent
|
package/dist/astro.js
CHANGED
|
@@ -7,14 +7,14 @@ import CardHeaderComponent from './components/card/card-header.astro'
|
|
|
7
7
|
import CardTitleComponent from './components/card/card-title.astro'
|
|
8
8
|
import CardComponent from './components/card/card.astro'
|
|
9
9
|
import ContainerComponent from './components/container/container.astro'
|
|
10
|
-
import CheckboxComponent from './components/forms/checkbox.astro'
|
|
11
|
-
import ErrorTextComponent from './components/forms/error-text.astro'
|
|
12
|
-
import HelpTextComponent from './components/forms/help-text.astro'
|
|
13
|
-
import InputAdornmentComponent from './components/forms/input-adornment.astro'
|
|
14
|
-
import InputComponent from './components/forms/input.astro'
|
|
15
|
-
import LabelComponent from './components/forms/label.astro'
|
|
16
|
-
import TextAreaComponent from './components/forms/text-area.astro'
|
|
17
10
|
import HamburgerComponent from './components/hamburger/hamburger.astro'
|
|
11
|
+
import CheckboxComponent from './components/inputs/checkbox.astro'
|
|
12
|
+
import ErrorTextComponent from './components/inputs/error-text.astro'
|
|
13
|
+
import HelpTextComponent from './components/inputs/help-text.astro'
|
|
14
|
+
import InputAdornmentComponent from './components/inputs/input-adornment.astro'
|
|
15
|
+
import InputComponent from './components/inputs/input.astro'
|
|
16
|
+
import LabelComponent from './components/inputs/label.astro'
|
|
17
|
+
import TextAreaComponent from './components/inputs/text-area.astro'
|
|
18
18
|
import ScrollToTopComponent from './components/scroll-to-top/scroll-to-top.astro'
|
|
19
19
|
import SectionComponent from './components/section/section.astro'
|
|
20
20
|
import CheckIconComponent from './icons/check-icon.astro'
|
|
@@ -33,6 +33,7 @@ export const CardHeader = CardHeaderComponent
|
|
|
33
33
|
export const CardTitle = CardTitleComponent
|
|
34
34
|
export const Card = CardComponent
|
|
35
35
|
export const Container = ContainerComponent
|
|
36
|
+
export const Hamburger = HamburgerComponent
|
|
36
37
|
export const Checkbox = CheckboxComponent
|
|
37
38
|
export const ErrorText = ErrorTextComponent
|
|
38
39
|
export const HelpText = HelpTextComponent
|
|
@@ -40,7 +41,6 @@ export const InputAdornment = InputAdornmentComponent
|
|
|
40
41
|
export const Input = InputComponent
|
|
41
42
|
export const Label = LabelComponent
|
|
42
43
|
export const TextArea = TextAreaComponent
|
|
43
|
-
export const Hamburger = HamburgerComponent
|
|
44
44
|
export const ScrollToTop = ScrollToTopComponent
|
|
45
45
|
export const Section = SectionComponent
|
|
46
46
|
export const CheckIcon = CheckIconComponent
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/@types/checkbox.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,wBAAwB,CAAA;AAEzD;;GAEG;AAIH;;GAEG;AACH,eAAO,MAAM,OAAO,iCAAkC,CAAA;AAEtD;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;AAE9C;;GAEG;AACH,eAAO,MAAM,IAAI,6BAA8B,CAAA;AAE/C;;;;;;;;GAQG;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,CAAC,CAAA;AAClC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAC9B,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/@types/input.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,wBAAwB,CAAA;AAEzD;;GAEG;AAIH;;GAEG;AACH,eAAO,MAAM,OAAO,+CAAgD,CAAA;AAEpE;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;AAE9C;;GAEG;AACH,eAAO,MAAM,IAAI,6BAA8B,CAAA;AAE/C;;;;;;;;GAQG;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,CAAC,CAAA;AAClC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAC9B,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/calendar.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,kBAAkB,CAAA;AAOzB,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC,CAAA;AAED,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,SAAS,EACT,UAAU,EACV,cAAc,EACd,eAAsB,EACtB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,KAAK,EACT,EAAE,aAAa,qBA6Hf;yBArIe,QAAQ"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import "./calendar_module.css";
|
|
2
|
+
const calendar_module = {
|
|
3
|
+
"day-picker": "day-picker-HSdX8f",
|
|
4
|
+
dayPicker: "day-picker-HSdX8f",
|
|
5
|
+
months: "months-C3oVse",
|
|
6
|
+
"months-caption": "months-caption-NbN6cs",
|
|
7
|
+
monthsCaption: "months-caption-NbN6cs",
|
|
8
|
+
dropdowns: "dropdowns-uLBfnD",
|
|
9
|
+
"select-trigger": "select-trigger-voJxnW",
|
|
10
|
+
selectTrigger: "select-trigger-voJxnW",
|
|
11
|
+
"select-content": "select-content-ppy0BT",
|
|
12
|
+
selectContent: "select-content-ppy0BT",
|
|
13
|
+
"select-item": "select-item-ycOfyG",
|
|
14
|
+
selectItem: "select-item-ycOfyG",
|
|
15
|
+
"select-chevrons": "select-chevrons-IbajEF",
|
|
16
|
+
selectChevrons: "select-chevrons-IbajEF",
|
|
17
|
+
"scroll-area": "scroll-area-N3USY2",
|
|
18
|
+
scrollArea: "scroll-area-N3USY2",
|
|
19
|
+
disabled: "disabled-npyvWL",
|
|
20
|
+
hidden: "hidden-ebyo7i",
|
|
21
|
+
outside: "outside-r9h4xf",
|
|
22
|
+
footer: "footer-eySpMW",
|
|
23
|
+
weekdays: "weekdays-YnSU_N",
|
|
24
|
+
weekday: "weekday-gss8NQ",
|
|
25
|
+
"caption-label": "caption-label-OqO5t0",
|
|
26
|
+
captionLabel: "caption-label-OqO5t0",
|
|
27
|
+
"month-grid": "month-grid-W4BMbT",
|
|
28
|
+
monthGrid: "month-grid-W4BMbT",
|
|
29
|
+
week: "week-g7SwK1",
|
|
30
|
+
day: "day-uPE3oG",
|
|
31
|
+
today: "today-gD7ocX",
|
|
32
|
+
"day-selected": "day-selected-vu_GPN",
|
|
33
|
+
daySelected: "day-selected-vu_GPN",
|
|
34
|
+
"day-button": "day-button-vnVFgU",
|
|
35
|
+
dayButton: "day-button-vnVFgU",
|
|
36
|
+
"button-range": "button-range-OxB5YX",
|
|
37
|
+
buttonRange: "button-range-OxB5YX",
|
|
38
|
+
"range-start": "range-start-CNcwzc",
|
|
39
|
+
rangeStart: "range-start-CNcwzc",
|
|
40
|
+
"range-end": "range-end-tRvpMD",
|
|
41
|
+
rangeEnd: "range-end-tRvpMD",
|
|
42
|
+
"range-middle": "range-middle-ECpyyL",
|
|
43
|
+
rangeMiddle: "range-middle-ECpyyL"
|
|
44
|
+
};
|
|
45
|
+
export default calendar_module;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
|
-
.day-picker-
|
|
4
|
+
.day-picker-HSdX8f {
|
|
5
5
|
padding: var(--spacing-12);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.months-
|
|
8
|
+
.months-C3oVse {
|
|
9
9
|
gap: var(--spacing-16);
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
display: flex;
|
|
12
12
|
position: relative;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.months-caption-
|
|
15
|
+
.months-caption-NbN6cs {
|
|
16
16
|
justify-content: center;
|
|
17
17
|
align-items: center;
|
|
18
18
|
height: 1.75rem;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
position: relative;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.dropdowns-
|
|
23
|
+
.dropdowns-uLBfnD {
|
|
24
24
|
justify-content: center;
|
|
25
25
|
align-items: center;
|
|
26
26
|
gap: var(--spacing-8);
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
display: flex;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.select-trigger-
|
|
31
|
+
.select-trigger-voJxnW {
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: 2.25rem;
|
|
34
34
|
font-size: .875rem;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.select-content-
|
|
37
|
+
.select-content-ppy0BT {
|
|
38
38
|
z-index: 100;
|
|
39
39
|
background-color: var(--background);
|
|
40
40
|
color: var(--foreground);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.select-item-
|
|
43
|
+
.select-item-ycOfyG {
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
border: none;
|
|
46
46
|
justify-content: center;
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
display: flex;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.select-item-
|
|
54
|
+
.select-item-ycOfyG:hover {
|
|
55
55
|
background-color: var(--gray-50);
|
|
56
56
|
color: var(--foreground);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.select-chevrons-
|
|
59
|
+
.select-chevrons-IbajEF {
|
|
60
60
|
stroke: var(--primary-400);
|
|
61
61
|
opacity: .7;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.scroll-area-
|
|
64
|
+
.scroll-area-N3USY2 {
|
|
65
65
|
border: 1px solid var(--border-color);
|
|
66
66
|
background-color: var(--background);
|
|
67
67
|
text-align: center;
|
|
@@ -69,43 +69,43 @@
|
|
|
69
69
|
height: 240px;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.disabled-
|
|
72
|
+
.disabled-npyvWL {
|
|
73
73
|
color: var(--muted);
|
|
74
74
|
opacity: .5;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.hidden-
|
|
77
|
+
.hidden-ebyo7i {
|
|
78
78
|
visibility: hidden;
|
|
79
79
|
flex: 1;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.outside-
|
|
82
|
+
.outside-r9h4xf {
|
|
83
83
|
color: var(--muted);
|
|
84
84
|
opacity: .5;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.outside-
|
|
87
|
+
.outside-r9h4xf[aria-selected="true"] {
|
|
88
88
|
color: var(--muted);
|
|
89
89
|
opacity: .3;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.footer-
|
|
92
|
+
.footer-eySpMW {
|
|
93
93
|
padding-top: var(--spacing-12);
|
|
94
94
|
font-size: .875rem;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.weekdays-
|
|
97
|
+
.weekdays-YnSU_N {
|
|
98
98
|
display: flex;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.weekday-
|
|
101
|
+
.weekday-gss8NQ {
|
|
102
102
|
width: 2.25rem;
|
|
103
103
|
color: var(--muted);
|
|
104
104
|
font-size: .875rem;
|
|
105
105
|
font-weight: normal;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
.caption-label-
|
|
108
|
+
.caption-label-OqO5t0 {
|
|
109
109
|
text-overflow: ellipsis;
|
|
110
110
|
white-space: nowrap;
|
|
111
111
|
font-size: .875rem;
|
|
@@ -113,20 +113,20 @@
|
|
|
113
113
|
overflow: hidden;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.month-grid-
|
|
116
|
+
.month-grid-W4BMbT {
|
|
117
117
|
margin-left: auto;
|
|
118
118
|
margin-right: auto;
|
|
119
119
|
margin-top: var(--spacing-16);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.week-
|
|
122
|
+
.week-g7SwK1 {
|
|
123
123
|
margin-top: var(--spacing-8);
|
|
124
124
|
align-items: flex-start;
|
|
125
125
|
width: max-content;
|
|
126
126
|
display: flex;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
.day-
|
|
129
|
+
.day-uPE3oG {
|
|
130
130
|
flex: 1;
|
|
131
131
|
justify-content: center;
|
|
132
132
|
align-items: center;
|
|
@@ -137,21 +137,21 @@
|
|
|
137
137
|
display: flex;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.day-
|
|
140
|
+
.day-uPE3oG > button {
|
|
141
141
|
color: var(--foreground);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
.today-
|
|
144
|
+
.today-gD7ocX > button {
|
|
145
145
|
border: solid 1px var(--stroke-primary);
|
|
146
146
|
color: var(--foreground);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
.day-
|
|
149
|
+
.day-uPE3oG > button:hover, .day-selected-vu_GPN > button {
|
|
150
150
|
background-color: var(--fill-primary-strong);
|
|
151
151
|
color: #fff;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
.day-button-
|
|
154
|
+
.day-button-vnVFgU {
|
|
155
155
|
border-radius: var(--border-radius-md);
|
|
156
156
|
width: 2.25rem;
|
|
157
157
|
height: 2.25rem;
|
|
@@ -160,62 +160,62 @@
|
|
|
160
160
|
transition: none;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.day-button-
|
|
163
|
+
.day-button-vnVFgU[aria-selected="true"] {
|
|
164
164
|
opacity: 1;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
.button-range-
|
|
167
|
+
.button-range-OxB5YX {
|
|
168
168
|
background-color: var(--fill-primary-weak);
|
|
169
169
|
color: var(--foreground);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.button-range-
|
|
172
|
+
.button-range-OxB5YX > button {
|
|
173
173
|
background-color: var(--fill-primary-strong);
|
|
174
174
|
color: #fff;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
.button-range-
|
|
177
|
+
.button-range-OxB5YX > button:hover {
|
|
178
178
|
background-color: var(--fill-primary-strong);
|
|
179
179
|
color: var(--foreground);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
.range-start-
|
|
182
|
+
.range-start-CNcwzc {
|
|
183
183
|
border-top-left-radius: var(--border-radius-md);
|
|
184
184
|
border-bottom-left-radius: var(--border-radius-md);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
.range-end-
|
|
187
|
+
.range-end-tRvpMD {
|
|
188
188
|
border-top-right-radius: var(--border-radius-md);
|
|
189
189
|
border-bottom-right-radius: var(--border-radius-md);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
.range-middle-
|
|
192
|
+
.range-middle-ECpyyL {
|
|
193
193
|
background-color: var(--fill-primary-weak);
|
|
194
194
|
color: var(--foreground);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
.range-middle-
|
|
197
|
+
.range-middle-ECpyyL > button, .range-middle-ECpyyL > button:hover {
|
|
198
198
|
color: var(--foreground);
|
|
199
199
|
background-color: #0000;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
@media (min-width: 40rem) {
|
|
203
|
-
.months-
|
|
203
|
+
.months-C3oVse {
|
|
204
204
|
flex-direction: row;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
:is(.dark, [data-theme="dark"]) .select-content-
|
|
208
|
+
:is(.dark, [data-theme="dark"]) .select-content-ppy0BT, :is(.dark, [data-theme="dark"]) .scroll-area-N3USY2 {
|
|
209
209
|
background-color: var(--canvas-800);
|
|
210
210
|
color: var(--foreground);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
:is(.dark, [data-theme="dark"]) .select-item-
|
|
213
|
+
:is(.dark, [data-theme="dark"]) .select-item-ycOfyG:hover {
|
|
214
214
|
background-color: var(--primary-400);
|
|
215
215
|
color: var(--foreground);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
:is(.dark, [data-theme="dark"]) .select-chevrons-
|
|
218
|
+
:is(.dark, [data-theme="dark"]) .select-chevrons-IbajEF {
|
|
219
219
|
stroke: var(--primary-200);
|
|
220
220
|
opacity: .7;
|
|
221
221
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/checkbox-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC3C,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CAC7C;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgEtD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./checkbox-group_module.css";
|
|
2
2
|
const checkbox_group_module = {
|
|
3
|
-
"checkbox-group": "checkbox-group-
|
|
4
|
-
checkboxGroup: "checkbox-group-
|
|
3
|
+
"checkbox-group": "checkbox-group-hPRXiQ",
|
|
4
|
+
checkboxGroup: "checkbox-group-hPRXiQ"
|
|
5
5
|
};
|
|
6
6
|
export default checkbox_group_module;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
|
-
:is(.infonomic-checkbox-group, .checkbox-group-
|
|
4
|
+
:is(.infonomic-checkbox-group, .checkbox-group-hPRXiQ) {
|
|
5
5
|
gap: var(--spacing-8);
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
display: flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAOvE,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEjE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,iBAAiB,CAAC,CAAA;IACxF,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACjC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,QAAQ,GAAqB,6KAkBvC,KAAK,GAAG;IACT,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;CACzC,KAAG,KAAK,CAAC,GAAG,CAAC,OAoDb,CAAA"}
|
|
@@ -6,7 +6,7 @@ import { CheckIcon } from "../../icons/check-icon.js";
|
|
|
6
6
|
import checkbox_module from "./checkbox.module.js";
|
|
7
7
|
import { ErrorText } from "./error-text.js";
|
|
8
8
|
import { HelpText } from "./help-text.js";
|
|
9
|
-
const
|
|
9
|
+
const inputs_checkbox_Checkbox = function({ ref, id, name, label, variant = 'outlined', size = 'md', intent = 'primary', reverse = false, className, checkBoxClasses, containerClasses, componentClasses, labelClasses, error = false, helpText = '', errorText = '', ...rest }) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("div", {
|
|
11
11
|
className: classnames('infonomic-checkbox-container', checkbox_module.container, containerClasses),
|
|
12
12
|
children: [
|
|
@@ -51,4 +51,4 @@ const forms_checkbox_Checkbox = function({ ref, id, name, label, variant = 'outl
|
|
|
51
51
|
]
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
export {
|
|
54
|
+
export { inputs_checkbox_Checkbox as Checkbox };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./checkbox_module.css";
|
|
2
|
+
const checkbox_module = {
|
|
3
|
+
container: "container-oQwpyX",
|
|
4
|
+
component: "component-UIVxUt",
|
|
5
|
+
reverse: "reverse-zym7zb",
|
|
6
|
+
checkbox: "checkbox-p0iZ1T",
|
|
7
|
+
indicator: "indicator-VoSV4Y",
|
|
8
|
+
icon: "icon-ETAzcD",
|
|
9
|
+
checkBoxIn: "checkBoxIn-q5l2Hl",
|
|
10
|
+
label: "label-XrpVKR",
|
|
11
|
+
errorText: "errorText-B98PO8",
|
|
12
|
+
sm: "sm-qprV45",
|
|
13
|
+
md: "md-JptERm",
|
|
14
|
+
lg: "lg-oF4sRl",
|
|
15
|
+
outlined: "outlined-JZPcbA",
|
|
16
|
+
filled: "filled-kMP3C2",
|
|
17
|
+
primary: "primary-VUeFFC",
|
|
18
|
+
secondary: "secondary-ZRma2z",
|
|
19
|
+
noeffect: "noeffect-rdjjte",
|
|
20
|
+
success: "success-ocrgme",
|
|
21
|
+
info: "info-vm53Ck",
|
|
22
|
+
warning: "warning-Xc4GbK",
|
|
23
|
+
danger: "danger-A2Iomw"
|
|
24
|
+
};
|
|
25
|
+
export default checkbox_module;
|