@ippon-ui/ui 0.0.2
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/.agents/agents/component-library-create-from-pattern-library.agent.md +37 -0
- package/.agents/agents/patten-library-create-component.agent.md +30 -0
- package/.agents/skills/component-library/SKILL.md +169 -0
- package/.agents/skills/pattern-library/SKILL.md +277 -0
- package/.github/workflows/build.yml +34 -0
- package/.gitlab-ci.yml +12 -0
- package/.prettierignore +6 -0
- package/AGENTS.md +50 -0
- package/LICENSE +202 -0
- package/ci/build.yml +15 -0
- package/ci/common.yml +42 -0
- package/ci/deploy.yml +20 -0
- package/icons/LICENCE +202 -0
- package/icons/index.ts +69 -0
- package/icons/package.json +25 -0
- package/icons/tsconfig.json +11 -0
- package/lefthook.yml +10 -0
- package/mise.toml +55 -0
- package/package.json +26 -0
- package/pnpm-workspace.yaml +9 -0
- package/prettier.config.mts +8 -0
- package/react/LICENCE +202 -0
- package/react/README.md +75 -0
- package/react/eslint.config.js +22 -0
- package/react/package.json +63 -0
- package/react/src/CAP.ts +14 -0
- package/react/src/Card.ts +2 -0
- package/react/src/DataSelectable.ts +7 -0
- package/react/src/Grid.ts +33 -0
- package/react/src/IpponBadge.tsx +62 -0
- package/react/src/IpponButton.tsx +93 -0
- package/react/src/IpponButtonCard.tsx +34 -0
- package/react/src/IpponCard.tsx +30 -0
- package/react/src/IpponContainer.tsx +15 -0
- package/react/src/IpponGrid.tsx +56 -0
- package/react/src/IpponHSpace.tsx +56 -0
- package/react/src/IpponIcon.tsx +15 -0
- package/react/src/IpponImportFile.tsx +128 -0
- package/react/src/IpponIon.tsx +45 -0
- package/react/src/IpponMeter.tsx +43 -0
- package/react/src/IpponProgress.tsx +45 -0
- package/react/src/IpponText.tsx +56 -0
- package/react/src/IpponTitle.tsx +45 -0
- package/react/src/IpponVSpace.tsx +43 -0
- package/react/src/Optional.ts +177 -0
- package/react/src/Tokens.ts +36 -0
- package/react/src/index.ts +16 -0
- package/react/test/File.fixture.ts +13 -0
- package/react/test/IpponBadge.spec.tsx +245 -0
- package/react/test/IpponButton.spec.tsx +666 -0
- package/react/test/IpponButtonCard.spec.tsx +162 -0
- package/react/test/IpponCard.spec.tsx +133 -0
- package/react/test/IpponContainer.spec.tsx +56 -0
- package/react/test/IpponGrid.spec.tsx +140 -0
- package/react/test/IpponHSpace.spec.tsx +107 -0
- package/react/test/IpponIcon.spec.tsx +37 -0
- package/react/test/IpponImportFile.spec.tsx +431 -0
- package/react/test/IpponIon.spec.tsx +52 -0
- package/react/test/IpponMeter.spec.tsx +59 -0
- package/react/test/IpponProgress.spec.tsx +68 -0
- package/react/test/IpponText.spec.tsx +149 -0
- package/react/test/IpponTitle.spec.tsx +242 -0
- package/react/test/IpponVSpace.spec.tsx +91 -0
- package/react/tsconfig.app.json +24 -0
- package/react/tsconfig.json +4 -0
- package/react/tsconfig.node.json +23 -0
- package/react/vite.config.ts +30 -0
- package/react/vitest.config.ts +21 -0
- package/styles/.editorconfig +12 -0
- package/styles/.stylelintrc.json +75 -0
- package/styles/LICENCE +202 -0
- package/styles/README.md +107 -0
- package/styles/logo.svg +26 -0
- package/styles/package.json +67 -0
- package/styles/src/atom/_atom.scss +9 -0
- package/styles/src/atom/atom.pug +34 -0
- package/styles/src/atom/badge/_badge.scss +108 -0
- package/styles/src/atom/badge/badge.code.pug +29 -0
- package/styles/src/atom/badge/badge.md +1 -0
- package/styles/src/atom/badge/badge.mixin.pug +24 -0
- package/styles/src/atom/badge/badge.render.pug +7 -0
- package/styles/src/atom/button/_button.scss +242 -0
- package/styles/src/atom/button/button.code.pug +38 -0
- package/styles/src/atom/button/button.md +31 -0
- package/styles/src/atom/button/button.mixin.pug +30 -0
- package/styles/src/atom/button/button.render.pug +13 -0
- package/styles/src/atom/icon/_icon.scss +8 -0
- package/styles/src/atom/icon/icon.code.pug +5 -0
- package/styles/src/atom/icon/icon.md +11 -0
- package/styles/src/atom/icon/icon.mixin.pug +8 -0
- package/styles/src/atom/icon/icon.render.pug +7 -0
- package/styles/src/atom/ion/ion.code.pug +8 -0
- package/styles/src/atom/ion/ion.md +11 -0
- package/styles/src/atom/ion/ion.mixin.pug +8 -0
- package/styles/src/atom/ion/ion.render.pug +7 -0
- package/styles/src/atom/meter/_meter.scss +23 -0
- package/styles/src/atom/meter/meter.code.pug +8 -0
- package/styles/src/atom/meter/meter.md +7 -0
- package/styles/src/atom/meter/meter.mixin.pug +12 -0
- package/styles/src/atom/meter/meter.render.pug +5 -0
- package/styles/src/atom/progress/_progress.scss +23 -0
- package/styles/src/atom/progress/progress.code.pug +8 -0
- package/styles/src/atom/progress/progress.md +7 -0
- package/styles/src/atom/progress/progress.mixin.pug +14 -0
- package/styles/src/atom/progress/progress.render.pug +5 -0
- package/styles/src/atom/tab/_tab.scss +48 -0
- package/styles/src/atom/tab/tab.code.pug +5 -0
- package/styles/src/atom/tab/tab.md +1 -0
- package/styles/src/atom/tab/tab.mixin.pug +14 -0
- package/styles/src/atom/tab/tab.render.pug +4 -0
- package/styles/src/atom/text/_text.scss +74 -0
- package/styles/src/atom/text/text.code.pug +19 -0
- package/styles/src/atom/text/text.md +5 -0
- package/styles/src/atom/text/text.mixin.pug +12 -0
- package/styles/src/atom/text/text.render.pug +7 -0
- package/styles/src/atom/title/_title.scss +68 -0
- package/styles/src/atom/title/title.code.pug +25 -0
- package/styles/src/atom/title/title.md +9 -0
- package/styles/src/atom/title/title.mixin.pug +12 -0
- package/styles/src/atom/title/title.render.pug +5 -0
- package/styles/src/atom/title-display/_title-display.scss +26 -0
- package/styles/src/atom/title-display/title-display.code.pug +9 -0
- package/styles/src/atom/title-display/title-display.md +5 -0
- package/styles/src/atom/title-display/title-display.mixin.pug +6 -0
- package/styles/src/atom/title-display/title-display.render.pug +4 -0
- package/styles/src/doc.scss +2 -0
- package/styles/src/favicon.ico +0 -0
- package/styles/src/function/_conversion.scss +9 -0
- package/styles/src/index.pug +59 -0
- package/styles/src/layout-documentation.pug +14 -0
- package/styles/src/layout.pug +17 -0
- package/styles/src/molecule/_molecule.scss +2 -0
- package/styles/src/molecule/import-file/_import-file.scss +38 -0
- package/styles/src/molecule/import-file/import-file.code.pug +4 -0
- package/styles/src/molecule/import-file/import-file.md +1 -0
- package/styles/src/molecule/import-file/import-file.mixin.pug +15 -0
- package/styles/src/molecule/import-file/import-file.render.pug +5 -0
- package/styles/src/molecule/molecule.pug +20 -0
- package/styles/src/molecule/tabs/_tabs.scss +4 -0
- package/styles/src/molecule/tabs/tabs.code.pug +9 -0
- package/styles/src/molecule/tabs/tabs.md +1 -0
- package/styles/src/molecule/tabs/tabs.mixin.pug +4 -0
- package/styles/src/molecule/tabs/tabs.render.pug +4 -0
- package/styles/src/molecule/toggle/_toggle.scss +68 -0
- package/styles/src/molecule/toggle/toggle.code.pug +26 -0
- package/styles/src/molecule/toggle/toggle.md +1 -0
- package/styles/src/molecule/toggle/toggle.mixin.pug +36 -0
- package/styles/src/molecule/toggle/toggle.render.pug +5 -0
- package/styles/src/organism/_abstract-card.scss +36 -0
- package/styles/src/organism/_docorganism.scss +1 -0
- package/styles/src/organism/_organism.scss +8 -0
- package/styles/src/organism/button-card/_button-card.scss +22 -0
- package/styles/src/organism/button-card/button-card.code.pug +31 -0
- package/styles/src/organism/button-card/button-card.md +28 -0
- package/styles/src/organism/button-card/button-card.mixin.pug +8 -0
- package/styles/src/organism/button-card/button-card.render.pug +7 -0
- package/styles/src/organism/card/_card.scss +6 -0
- package/styles/src/organism/card/card.code.pug +9 -0
- package/styles/src/organism/card/card.md +23 -0
- package/styles/src/organism/card/card.mixin.pug +7 -0
- package/styles/src/organism/card/card.render.pug +7 -0
- package/styles/src/organism/container/_container.scss +3 -0
- package/styles/src/organism/container/container.code.pug +13 -0
- package/styles/src/organism/container/container.md +5 -0
- package/styles/src/organism/container/container.mixin.pug +3 -0
- package/styles/src/organism/container/container.render.pug +4 -0
- package/styles/src/organism/grid/_docgrid.scss +11 -0
- package/styles/src/organism/grid/_grid.scss +84 -0
- package/styles/src/organism/grid/grid.code.pug +25 -0
- package/styles/src/organism/grid/grid.md +1 -0
- package/styles/src/organism/grid/grid.mixin.pug +7 -0
- package/styles/src/organism/grid/grid.render.pug +5 -0
- package/styles/src/organism/h-space/_h-space.scss +49 -0
- package/styles/src/organism/h-space/h-space.code.pug +56 -0
- package/styles/src/organism/h-space/h-space.md +22 -0
- package/styles/src/organism/h-space/h-space.mixin.pug +14 -0
- package/styles/src/organism/h-space/h-space.render.pug +5 -0
- package/styles/src/organism/header/_header.scss +8 -0
- package/styles/src/organism/header/header.code.pug +14 -0
- package/styles/src/organism/header/header.md +1 -0
- package/styles/src/organism/header/header.mixin.pug +7 -0
- package/styles/src/organism/header/header.render.pug +4 -0
- package/styles/src/organism/modal/_modal.scss +58 -0
- package/styles/src/organism/modal/modal.code.pug +68 -0
- package/styles/src/organism/modal/modal.md +1 -0
- package/styles/src/organism/modal/modal.mixin.pug +25 -0
- package/styles/src/organism/modal/modal.render.pug +4 -0
- package/styles/src/organism/organism.pug +30 -0
- package/styles/src/organism/v-space/_v-space.scss +45 -0
- package/styles/src/organism/v-space/v-space.code.pug +41 -0
- package/styles/src/organism/v-space/v-space.md +20 -0
- package/styles/src/organism/v-space/v-space.mixin.pug +7 -0
- package/styles/src/organism/v-space/v-space.render.pug +5 -0
- package/styles/src/quark/_breakpoint.scss +12 -0
- package/styles/src/quark/_font.scss +38 -0
- package/styles/src/quark/_gap.scss +34 -0
- package/styles/src/quark/_placeholder.scss +27 -0
- package/styles/src/quark/_shadow.scss +13 -0
- package/styles/src/quark/_typography.scss +146 -0
- package/styles/src/template/_template.scss +1 -0
- package/styles/src/template/layout/_layout.scss +20 -0
- package/styles/src/template/layout/layout.code.pug +11 -0
- package/styles/src/template/layout/layout.md +1 -0
- package/styles/src/template/layout/layout.mixin.pug +11 -0
- package/styles/src/template/layout/layout.render.pug +4 -0
- package/styles/src/template/template.pug +16 -0
- package/styles/src/tikui.scss +5 -0
- package/styles/src/token/_doctable.scss +14 -0
- package/styles/src/token/_doctoken.scss +1 -0
- package/styles/src/token/_size.scss +9 -0
- package/styles/src/token/_token.scss +5 -0
- package/styles/src/token/color/_color.scss +9 -0
- package/styles/src/token/color/color/_base.scss +65 -0
- package/styles/src/token/color/color/_brand.scss +13 -0
- package/styles/src/token/color/color/_error.scss +13 -0
- package/styles/src/token/color/color/_information-2.scss +13 -0
- package/styles/src/token/color/color/_information.scss +13 -0
- package/styles/src/token/color/color/_neutral.scss +20 -0
- package/styles/src/token/color/color/_semantic.scss +69 -0
- package/styles/src/token/color/color/_success.scss +13 -0
- package/styles/src/token/color/color/_warning.scss +13 -0
- package/styles/src/token/color/color.js +31 -0
- package/styles/src/token/color/color.mixin.pug +19 -0
- package/styles/src/token/color/color.pug +9 -0
- package/styles/src/token/color/color.render.pug +13 -0
- package/styles/src/token/radius/_radius.scss +8 -0
- package/styles/src/token/radius/radius.js +54 -0
- package/styles/src/token/radius/radius.mixin.pug +14 -0
- package/styles/src/token/radius/radius.pug +9 -0
- package/styles/src/token/radius/radius.render.pug +11 -0
- package/styles/src/token/shadow/_shadow.scss +22 -0
- package/styles/src/token/shadow/shadow.js +45 -0
- package/styles/src/token/shadow/shadow.mixin.pug +13 -0
- package/styles/src/token/shadow/shadow.pug +9 -0
- package/styles/src/token/shadow/shadow.render.pug +9 -0
- package/styles/src/token/token.js +38 -0
- package/styles/src/token/token.pug +25 -0
- package/styles/src/token/typography/_typography.scss +103 -0
- package/styles/src/token/typography/typography.js +32 -0
- package/styles/src/token/typography/typography.mixin.pug +17 -0
- package/styles/src/token/typography/typography.pug +9 -0
- package/styles/src/token/typography/typography.render.pug +19 -0
- package/styles/test/function/conversion.test.scss +20 -0
- package/styles/test/function/sass.spec.ts +6 -0
- package/styles/tikuiconfig.json +14 -0
- package/styles/tsconfig.json +10 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@mixin -ippon-modal-slot {
|
|
2
|
+
padding: 0 var(--ippon-size-24);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.ippon-modal {
|
|
6
|
+
--_margin-horizontal: var(--ippon-size-24);
|
|
7
|
+
--_witdh-space-to-remove: calc(var(--_margin-horizontal) * 2);
|
|
8
|
+
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: var(--ippon-size-24);
|
|
12
|
+
border: 0;
|
|
13
|
+
border-radius: var(--ippon-radius-m);
|
|
14
|
+
background-color: var(--ippon-color-neutral-surface-primary);
|
|
15
|
+
padding: var(--ippon-size-24) 0;
|
|
16
|
+
width: calc(100% - var(--_witdh-space-to-remove));
|
|
17
|
+
max-width: var(--ippon-size-886);
|
|
18
|
+
color: var(--ippon-color-neutral-text-icon-on-primary);
|
|
19
|
+
|
|
20
|
+
&::backdrop {
|
|
21
|
+
background-color: color-mix(in srgb, var(--ippon-color-neutral-999) 70%, transparent);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:open {
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--header {
|
|
29
|
+
@include -ippon-modal-slot;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--separator {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
margin: 0 var(--ippon-size-24);
|
|
35
|
+
border-top: 1px solid var(--ippon-color-neutral-border);
|
|
36
|
+
border-right: 0;
|
|
37
|
+
border-bottom: 0;
|
|
38
|
+
border-left: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--actions {
|
|
42
|
+
border-top: 1px solid var(--ippon-color-neutral-border);
|
|
43
|
+
border-bottom: 1px solid var(--ippon-color-neutral-border);
|
|
44
|
+
background-color: var(--ippon-color-neutral-surface-secondary);
|
|
45
|
+
padding: var(--ippon-size-16) var(--ippon-size-24);
|
|
46
|
+
color: var(--ippon-color-neutral-text-icon-on-secondary);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&--body {
|
|
50
|
+
@include -ippon-modal-slot;
|
|
51
|
+
|
|
52
|
+
overflow: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&--footer {
|
|
56
|
+
@include -ippon-modal-slot;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
include /atom/button/button.mixin.pug
|
|
2
|
+
include /atom/meter/meter.mixin.pug
|
|
3
|
+
include /atom/title/title.mixin.pug
|
|
4
|
+
include /atom/text/text.mixin.pug
|
|
5
|
+
include /atom/icon/icon.mixin.pug
|
|
6
|
+
include /organism/h-space/h-space.mixin.pug
|
|
7
|
+
include /organism/v-space/v-space.mixin.pug
|
|
8
|
+
|
|
9
|
+
include modal.mixin.pug
|
|
10
|
+
|
|
11
|
+
+ippon-button({ command: 'show-modal', commandfor: 'modal' }) Open modal
|
|
12
|
+
+ippon-modal({ id: 'modal' })
|
|
13
|
+
+ippon-modal--header
|
|
14
|
+
+ippon-h-space({ gap: 16, align: 'middle' })
|
|
15
|
+
+ippon-icon({ name: 'list', variant: 'outline', color: 'brand-primary' })
|
|
16
|
+
+ippon-h-space--slot({ expand: true })
|
|
17
|
+
ippon-v-space
|
|
18
|
+
hgroup
|
|
19
|
+
+ippon-title({ level: 5 }) Modal title
|
|
20
|
+
+ippon-text({ tag: 'p', variant: 'body', size: 'small', color: 'neutral-tertiary-inversed' }) Modal description
|
|
21
|
+
+ippon-button({ variant: 'text', color: 'neutral', icon: { name: 'close' }, command: 'close', commandfor: 'modal' })
|
|
22
|
+
+ippon-modal--separator
|
|
23
|
+
+ippon-modal--body
|
|
24
|
+
+ippon-text({ variant: 'body' }) Body
|
|
25
|
+
+ippon-modal--footer
|
|
26
|
+
+ippon-h-space({ gap: 24, align: 'middle' })
|
|
27
|
+
+ippon-button({ command: 'close', commandfor: 'modal', iconRight: { name: 'close' } }) Close
|
|
28
|
+
+ippon-button({ command: 'close', variant: 'outline', iconRight: { name: 'reload' } }) Other
|
|
29
|
+
|
|
30
|
+
+ippon-button({ command: 'show-modal', commandfor: 'modal-actions' }) Open modal with actions
|
|
31
|
+
+ippon-modal({ id: 'modal-actions' })
|
|
32
|
+
+ippon-modal--header
|
|
33
|
+
+ippon-h-space({ gap: 16, align: 'middle' })
|
|
34
|
+
+ippon-icon({ name: 'list', variant: 'outline', color: 'brand-primary' })
|
|
35
|
+
+ippon-h-space--slot({ expand: true })
|
|
36
|
+
ippon-v-space
|
|
37
|
+
hgroup
|
|
38
|
+
+ippon-title({ level: 5 }) Modal title
|
|
39
|
+
+ippon-text({ tag: 'p', variant: 'body', size: 'small', color: 'neutral-tertiary-inversed' }) Modal description
|
|
40
|
+
+ippon-button({ variant: 'text', color: 'neutral', icon: { name: 'close' }, command: 'close', commandfor: 'modal-actions' })
|
|
41
|
+
+ippon-modal--actions
|
|
42
|
+
+ippon-h-space({ gap: 24, align: 'middle' })
|
|
43
|
+
+ippon-button({ variant: 'text', size: 'small' }) Select all
|
|
44
|
+
+ippon-button({ color: 'neutral', variant: 'text', size: 'small' }) Unselect all
|
|
45
|
+
+ippon-modal--body
|
|
46
|
+
+ippon-text({ variant: 'body' }) Body
|
|
47
|
+
+ippon-modal--footer
|
|
48
|
+
+ippon-h-space({ gap: 24, align: 'middle' })
|
|
49
|
+
+ippon-button({ command: 'close', commandfor: 'modal-actions', iconRight: { name: 'close' } }) Close
|
|
50
|
+
+ippon-button({ command: 'close', variant: 'outline', iconRight: { name: 'reload' } }) Other
|
|
51
|
+
|
|
52
|
+
+ippon-button({ command: 'show-modal', commandfor: 'modal-loading' }) Open loading modal
|
|
53
|
+
+ippon-modal({ id: 'modal-loading' })
|
|
54
|
+
+ippon-modal--header
|
|
55
|
+
+ippon-h-space({ gap: 16, align: 'middle' })
|
|
56
|
+
+ippon-icon({ name: 'hourglass', variant: 'outline', color: 'brand-primary', size: 32 })
|
|
57
|
+
+ippon-h-space--slot({ expand: true })
|
|
58
|
+
ippon-v-space
|
|
59
|
+
hgroup
|
|
60
|
+
+ippon-title({ level: 5 }) Loading title
|
|
61
|
+
+ippon-text({ tag: 'p', variant: 'body', size: 'small', color: 'neutral-tertiary-inversed' }) Please wait...
|
|
62
|
+
+ippon-modal--separator
|
|
63
|
+
+ippon-modal--body
|
|
64
|
+
+ippon-v-space({ gap: 16 })
|
|
65
|
+
+ippon-meter({ value: 60, min: 0, max: 100 })
|
|
66
|
+
+ippon-text({ variant: 'body' }) 60%
|
|
67
|
+
+ippon-modal--footer
|
|
68
|
+
+ippon-button({ command: 'close', commandfor: 'modal-loading', variant: 'outline', color: 'neutral', iconRight: { name: 'close' } }) Close (demo only)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Modal
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
include /atom/button/button.mixin.pug
|
|
2
|
+
|
|
3
|
+
mixin ippon-modal(options)
|
|
4
|
+
- const { id, additionalClass } = options || {};
|
|
5
|
+
dialog.ippon-modal(id=id, class=additionalClass)
|
|
6
|
+
block
|
|
7
|
+
|
|
8
|
+
mixin ippon-modal--header
|
|
9
|
+
.ippon-modal--header
|
|
10
|
+
block
|
|
11
|
+
|
|
12
|
+
mixin ippon-modal--separator
|
|
13
|
+
hr.ippon-modal--separator
|
|
14
|
+
|
|
15
|
+
mixin ippon-modal--actions
|
|
16
|
+
.ippon-modal--actions
|
|
17
|
+
block
|
|
18
|
+
|
|
19
|
+
mixin ippon-modal--body
|
|
20
|
+
.ippon-modal--body
|
|
21
|
+
block
|
|
22
|
+
|
|
23
|
+
mixin ippon-modal--footer
|
|
24
|
+
.ippon-modal--footer
|
|
25
|
+
block
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
extends /layout-documentation
|
|
2
|
+
|
|
3
|
+
block append vars
|
|
4
|
+
- active = 'organism';
|
|
5
|
+
|
|
6
|
+
block title
|
|
7
|
+
title Tikui - Organisms
|
|
8
|
+
|
|
9
|
+
block content
|
|
10
|
+
.tikui-vertical-spacing.-s32
|
|
11
|
+
.tikui-vertical-spacing--line
|
|
12
|
+
h1#organisms.tikui-title-main Organisms
|
|
13
|
+
.tikui-vertical-spacing--line
|
|
14
|
+
include /documentation/atomic-design/quote/organism
|
|
15
|
+
.tikui-vertical-spacing--line
|
|
16
|
+
include:componentDoc(height=330) button-card/button-card.md
|
|
17
|
+
.tikui-vertical-spacing--line
|
|
18
|
+
include:componentDoc(height=200) card/card.md
|
|
19
|
+
.tikui-vertical-spacing--line
|
|
20
|
+
include:componentDoc(height=110) container/container.md
|
|
21
|
+
.tikui-vertical-spacing--line
|
|
22
|
+
include:componentDoc header/header.md
|
|
23
|
+
.tikui-vertical-spacing--line
|
|
24
|
+
include:componentDoc(height=400) modal/modal.md
|
|
25
|
+
.tikui-vertical-spacing--line
|
|
26
|
+
include:componentDoc(height=800) h-space/h-space.md
|
|
27
|
+
.tikui-vertical-spacing--line
|
|
28
|
+
include:componentDoc(height=1120) v-space/v-space.md
|
|
29
|
+
.tikui-vertical-spacing--line
|
|
30
|
+
include:componentDoc(height=550) grid/grid.md
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use '../../quark/gap';
|
|
2
|
+
|
|
3
|
+
.ippon-v-space {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
list-style: none;
|
|
9
|
+
|
|
10
|
+
@include gap.gaps;
|
|
11
|
+
|
|
12
|
+
&.-left {
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.-center {
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.-justify {
|
|
21
|
+
align-items: stretch;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.-right {
|
|
25
|
+
align-items: flex-end;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--slot {
|
|
29
|
+
&.-left {
|
|
30
|
+
align-self: flex-start;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.-center {
|
|
34
|
+
align-self: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.-justify {
|
|
38
|
+
align-self: stretch;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.-right {
|
|
42
|
+
align-self: flex-end;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
include v-space.mixin.pug
|
|
2
|
+
|
|
3
|
+
mixin ippon-v-space-rectangle(width = '100%')
|
|
4
|
+
div(
|
|
5
|
+
style=`width: ${width}; height: var(--ippon-size-32); background-color: var(--ippon-color-brand-surface-primary); border-radius: var(--ippon-radius-m)`
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
+ippon-v-space
|
|
9
|
+
+ippon-v-space-rectangle
|
|
10
|
+
+ippon-v-space-rectangle
|
|
11
|
+
+ippon-v-space-rectangle
|
|
12
|
+
|
|
13
|
+
+ippon-v-space({ gap: 8 })
|
|
14
|
+
+ippon-v-space-rectangle
|
|
15
|
+
+ippon-v-space-rectangle
|
|
16
|
+
+ippon-v-space-rectangle
|
|
17
|
+
|
|
18
|
+
+ippon-v-space({ gap: 32, align: 'center' })
|
|
19
|
+
+ippon-v-space-rectangle('100px')
|
|
20
|
+
+ippon-v-space-rectangle('100px')
|
|
21
|
+
+ippon-v-space-rectangle('100px')
|
|
22
|
+
|
|
23
|
+
+ippon-v-space({ gap: 16, align: 'left' })
|
|
24
|
+
+ippon-v-space-rectangle('100px')
|
|
25
|
+
+ippon-v-space-rectangle('100px')
|
|
26
|
+
+ippon-v-space-rectangle('100px')
|
|
27
|
+
|
|
28
|
+
+ippon-v-space({ gap: 20, align: 'right' })
|
|
29
|
+
+ippon-v-space-rectangle('100px')
|
|
30
|
+
+ippon-v-space-rectangle('100px')
|
|
31
|
+
+ippon-v-space-rectangle('100px')
|
|
32
|
+
|
|
33
|
+
+ippon-v-space({ gap: 24, align: 'justify' })
|
|
34
|
+
+ippon-v-space-rectangle
|
|
35
|
+
+ippon-v-space-rectangle
|
|
36
|
+
+ippon-v-space-rectangle
|
|
37
|
+
|
|
38
|
+
+ippon-v-space({ gap: 16, tag: 'section' })
|
|
39
|
+
+ippon-v-space-rectangle('100px')
|
|
40
|
+
+ippon-v-space-rectangle('100px')
|
|
41
|
+
+ippon-v-space-rectangle('100px')
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## Vertical space (v-space)
|
|
2
|
+
|
|
3
|
+
The `v-space` organism represents vertical spaces between elements.
|
|
4
|
+
|
|
5
|
+
**Gap**
|
|
6
|
+
|
|
7
|
+
The `-gap-{size}` alternative specifies the gap between child elements.
|
|
8
|
+
|
|
9
|
+
**Tag**
|
|
10
|
+
|
|
11
|
+
The `tag` property allows specifying a custom HTML element (e.g., `div`, `section`, `article`). Defaults to `div`.
|
|
12
|
+
|
|
13
|
+
**Alignment**
|
|
14
|
+
|
|
15
|
+
The following alternatives control the horizontal alignment of child elements:
|
|
16
|
+
|
|
17
|
+
- `-left`: Align items to the left (flex-start)
|
|
18
|
+
- `-center`: Center align items
|
|
19
|
+
- `-justify`: Stretch items to full width (stretch)
|
|
20
|
+
- `-right`: Align items to the right (flex-end)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use '../token/size';
|
|
2
|
+
|
|
3
|
+
@mixin -color-for-variant($color-name, $variant-name) {
|
|
4
|
+
&.-color-#{$color-name}-#{$variant-name} {
|
|
5
|
+
color: var(#{'--ippon-color-' + $color-name + '-text-icon-' + $variant-name});
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin -color-for($color-name) {
|
|
10
|
+
@include -color-for-variant($color-name, 'primary');
|
|
11
|
+
@include -color-for-variant($color-name, 'secondary');
|
|
12
|
+
@include -color-for-variant($color-name, 'on-primary');
|
|
13
|
+
@include -color-for-variant($color-name, 'on-secondary');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin -neutral {
|
|
17
|
+
@include -color-for('neutral');
|
|
18
|
+
@include -color-for-variant('neutral', 'tertiary');
|
|
19
|
+
@include -color-for-variant('neutral', 'tertiary-inversed');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin sizes {
|
|
23
|
+
@each $size in size.$sizes {
|
|
24
|
+
&.-size-#{$size} {
|
|
25
|
+
font-size: var(--ippon-size-#{$size});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin colors {
|
|
31
|
+
@include -neutral;
|
|
32
|
+
@include -color-for('brand');
|
|
33
|
+
@include -color-for('success');
|
|
34
|
+
@include -color-for('error');
|
|
35
|
+
@include -color-for('warning');
|
|
36
|
+
@include -color-for('information');
|
|
37
|
+
@include -color-for('information-2');
|
|
38
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use '../token/size';
|
|
2
|
+
@use 'breakpoint';
|
|
3
|
+
|
|
4
|
+
@mixin gaps {
|
|
5
|
+
@each $size in size.$sizes {
|
|
6
|
+
&.-gap-#{$size} {
|
|
7
|
+
gap: var(--ippon-size-#{$size});
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin media-gaps {
|
|
13
|
+
@each $breakpoint, $breakpoint-value in breakpoint.$media-breakpoints {
|
|
14
|
+
@media (min-width: $breakpoint-value) {
|
|
15
|
+
@each $size in size.$sizes {
|
|
16
|
+
&.-gap-#{$breakpoint}-#{$size} {
|
|
17
|
+
gap: var(--ippon-size-#{$size});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin container-gaps {
|
|
25
|
+
@each $breakpoint, $container-value in breakpoint.$container-breakpoints {
|
|
26
|
+
@container (min-width: #{$container-value}) {
|
|
27
|
+
@each $size in size.$sizes {
|
|
28
|
+
&.-gap-#{$breakpoint}-#{$size} {
|
|
29
|
+
gap: var(--ippon-size-#{$size});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@keyframes ippon-placeholder-shimmer {
|
|
2
|
+
0% {
|
|
3
|
+
background-position: -1000px 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
background-position: 1000px 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
%ippon-placeholder {
|
|
12
|
+
animation: ippon-placeholder-shimmer 2s infinite;
|
|
13
|
+
background: linear-gradient(
|
|
14
|
+
90deg,
|
|
15
|
+
var(--ippon-color-neutral-surface-secondary) 0%,
|
|
16
|
+
var(--ippon-color-neutral-surface-tertiary) 50%,
|
|
17
|
+
var(--ippon-color-neutral-surface-secondary) 100%
|
|
18
|
+
);
|
|
19
|
+
background-size: 62rem 100%;
|
|
20
|
+
color: transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin placeholder($height) {
|
|
24
|
+
@extend %ippon-placeholder;
|
|
25
|
+
|
|
26
|
+
height: $height;
|
|
27
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin display-large {
|
|
4
|
+
text-transform: var(--ippon-typography-display-large-transform);
|
|
5
|
+
line-height: var(--ippon-typography-display-large-line-height);
|
|
6
|
+
font-family: var(--ippon-typography-display-large-font);
|
|
7
|
+
font-size: var(--ippon-typography-display-large-size);
|
|
8
|
+
font-weight: var(--ippon-typography-display-large-weight);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin display-medium {
|
|
12
|
+
text-transform: var(--ippon-typography-display-medium-transform);
|
|
13
|
+
line-height: var(--ippon-typography-display-medium-line-height);
|
|
14
|
+
font-family: var(--ippon-typography-display-medium-font);
|
|
15
|
+
font-size: var(--ippon-typography-display-medium-size);
|
|
16
|
+
font-weight: var(--ippon-typography-display-medium-weight);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin display-small {
|
|
20
|
+
text-transform: var(--ippon-typography-display-small-transform);
|
|
21
|
+
line-height: var(--ippon-typography-display-small-line-height);
|
|
22
|
+
font-family: var(--ippon-typography-display-small-font);
|
|
23
|
+
font-size: var(--ippon-typography-display-small-size);
|
|
24
|
+
font-weight: var(--ippon-typography-display-small-weight);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin title-1 {
|
|
28
|
+
text-transform: var(--ippon-typography-title-1-transform);
|
|
29
|
+
line-height: var(--ippon-typography-title-1-line-height);
|
|
30
|
+
font-family: var(--ippon-typography-title-1-font);
|
|
31
|
+
font-size: var(--ippon-typography-title-1-size);
|
|
32
|
+
font-weight: var(--ippon-typography-title-1-weight);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin title-2 {
|
|
36
|
+
text-transform: var(--ippon-typography-title-2-transform);
|
|
37
|
+
line-height: var(--ippon-typography-title-2-line-height);
|
|
38
|
+
font-family: var(--ippon-typography-title-2-font);
|
|
39
|
+
font-size: var(--ippon-typography-title-2-size);
|
|
40
|
+
font-weight: var(--ippon-typography-title-2-weight);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin title-3 {
|
|
44
|
+
text-transform: var(--ippon-typography-title-3-transform);
|
|
45
|
+
line-height: var(--ippon-typography-title-3-line-height);
|
|
46
|
+
font-family: var(--ippon-typography-title-3-font);
|
|
47
|
+
font-size: var(--ippon-typography-title-3-size);
|
|
48
|
+
font-weight: var(--ippon-typography-title-3-weight);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin title-4 {
|
|
52
|
+
text-transform: var(--ippon-typography-title-4-transform);
|
|
53
|
+
line-height: var(--ippon-typography-title-4-line-height);
|
|
54
|
+
font-family: var(--ippon-typography-title-4-font);
|
|
55
|
+
font-size: var(--ippon-typography-title-4-size);
|
|
56
|
+
font-weight: var(--ippon-typography-title-4-weight);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@mixin title-5 {
|
|
60
|
+
text-transform: var(--ippon-typography-title-5-transform);
|
|
61
|
+
line-height: var(--ippon-typography-title-5-line-height);
|
|
62
|
+
font-family: var(--ippon-typography-title-5-font);
|
|
63
|
+
font-size: var(--ippon-typography-title-5-size);
|
|
64
|
+
font-weight: var(--ippon-typography-title-5-weight);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
$-body-large-weights: (
|
|
68
|
+
'normal': var(--ippon-typography-body-large-weight),
|
|
69
|
+
'bold': var(--ippon-typography-body-large-weight-bold),
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
@mixin -body-large($weight: 'normal') {
|
|
73
|
+
line-height: var(--ippon-typography-body-large-line-height);
|
|
74
|
+
font-family: var(--ippon-typography-body-large-font);
|
|
75
|
+
font-size: var(--ippon-typography-body-large-size);
|
|
76
|
+
font-weight: map.get($-body-large-weights, $weight);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@mixin body-large {
|
|
80
|
+
@include -body-large('normal');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@mixin body-large-bold {
|
|
84
|
+
@include -body-large('bold');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
$-body-medium-weights: (
|
|
88
|
+
'normal': var(--ippon-typography-body-medium-weight),
|
|
89
|
+
'bold': var(--ippon-typography-body-medium-weight-bold),
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
@mixin -body-medium($weight: 'normal') {
|
|
93
|
+
line-height: var(--ippon-typography-body-medium-line-height);
|
|
94
|
+
font-family: var(--ippon-typography-body-medium-font);
|
|
95
|
+
font-size: var(--ippon-typography-body-medium-size);
|
|
96
|
+
font-weight: map.get($-body-medium-weights, $weight);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@mixin body-medium {
|
|
100
|
+
@include -body-medium('normal');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin body-medium-bold {
|
|
104
|
+
@include -body-medium('bold');
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
$-body-small-weights: (
|
|
108
|
+
'normal': var(--ippon-typography-body-small-weight),
|
|
109
|
+
'bold': var(--ippon-typography-body-small-weight-bold),
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
@mixin -body-small($weight: 'normal') {
|
|
113
|
+
line-height: var(--ippon-typography-body-small-line-height);
|
|
114
|
+
font-family: var(--ippon-typography-body-small-font);
|
|
115
|
+
font-size: var(--ippon-typography-body-small-size);
|
|
116
|
+
font-weight: map.get($-body-small-weights, $weight);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@mixin body-small {
|
|
120
|
+
@include -body-small('normal');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@mixin body-small-bold {
|
|
124
|
+
@include -body-small('bold');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin label-large {
|
|
128
|
+
line-height: var(--ippon-typography-label-large-line-height);
|
|
129
|
+
font-family: var(--ippon-typography-label-large-font);
|
|
130
|
+
font-size: var(--ippon-typography-label-large-size);
|
|
131
|
+
font-weight: var(--ippon-typography-label-large-weight);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@mixin label-medium {
|
|
135
|
+
line-height: var(--ippon-typography-label-medium-line-height);
|
|
136
|
+
font-family: var(--ippon-typography-label-medium-font);
|
|
137
|
+
font-size: var(--ippon-typography-label-medium-size);
|
|
138
|
+
font-weight: var(--ippon-typography-label-medium-weight);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@mixin label-small {
|
|
142
|
+
line-height: var(--ippon-typography-label-small-line-height);
|
|
143
|
+
font-family: var(--ippon-typography-label-small-font);
|
|
144
|
+
font-size: var(--ippon-typography-label-small-size);
|
|
145
|
+
font-weight: var(--ippon-typography-label-small-weight);
|
|
146
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use 'layout/layout';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.ippon-layout {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
&--header {
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
background-color: var(--ippon-color-neutral-surface-primary);
|
|
10
|
+
color: var(--ippon-color-neutral-text-icon-on-primary);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--body {
|
|
14
|
+
flex: 1;
|
|
15
|
+
background-color: var(--ippon-color-neutral-surface-secondary);
|
|
16
|
+
padding: var(--ippon-size-32) var(--ippon-size-48);
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
color: var(--ippon-color-neutral-text-icon-on-secondary);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Layout
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
extends /layout-documentation
|
|
2
|
+
|
|
3
|
+
block append vars
|
|
4
|
+
- active = 'template';
|
|
5
|
+
|
|
6
|
+
block title
|
|
7
|
+
title Tikui - Templates
|
|
8
|
+
|
|
9
|
+
block content
|
|
10
|
+
.tikui-vertical-spacing.-s32
|
|
11
|
+
.tikui-vertical-spacing--line
|
|
12
|
+
h1#templates.tikui-title-main Templates
|
|
13
|
+
.tikui-vertical-spacing--line
|
|
14
|
+
include /documentation/atomic-design/quote/template
|
|
15
|
+
.tikui-vertical-spacing--line
|
|
16
|
+
include:templateDoc layout/layout.md
|